Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: content/browser/renderer_host/render_widget_host_view.h

Issue 9316073: Expose contextual menu state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: shared linux build fix Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view.h
diff --git a/content/browser/renderer_host/render_widget_host_view.h b/content/browser/renderer_host/render_widget_host_view.h
index f3e9b8b124f311c09ffdd0291d9f6eece2e6d7b5..3874bd4092e1b37e56a0634e51c474e28b5feca9 100644
--- a/content/browser/renderer_host/render_widget_host_view.h
+++ b/content/browser/renderer_host/render_widget_host_view.h
@@ -201,11 +201,10 @@ class RenderWidgetHostView {
virtual void SelectionBoundsChanged(const gfx::Rect& start_rect,
const gfx::Rect& end_rect) {}
- // Tells the View whether the context menu is showing. This is used on Linux
- // to suppress updates to webkit focus for the duration of the show.
- virtual void ShowingContextMenu(bool showing) {}
+ // Tells the View whether the context menu is showing.
+ CONTENT_EXPORT virtual void SetShowingContextMenu(bool showing);
- // Allocate a backing store for this view
+ // Allocate a backing store for this view.
virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
// Called when accelerated compositing state changes.
@@ -346,6 +345,7 @@ class RenderWidgetHostView {
void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager);
bool mouse_locked() const { return mouse_locked_; }
+ bool showing_context_menu() const { return showing_context_menu_; }
protected:
// Interface class only, do not construct.
@@ -366,6 +366,9 @@ class RenderWidgetHostView {
// locked.
bool mouse_locked_;
+ // Whether we are showing a context menu.
+ bool showing_context_menu_;
+
// A buffer containing the text inside and around the current selection range.
string16 selection_text_;
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | content/browser/renderer_host/render_widget_host_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698