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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 9316073: Expose contextual menu state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 0ca290c3addd018adf51c51119633b5b46c355be..2f1096a0fa2e4843d72529bfdada6c94eeafd774 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -235,7 +235,6 @@ RenderWidgetHostViewMac::RenderWidgetHostViewMac(RenderWidgetHost* widget)
text_input_type_(ui::TEXT_INPUT_TYPE_NONE),
is_loading_(false),
is_hidden_(false),
- is_showing_context_menu_(false),
weak_factory_(this),
accelerated_compositing_active_(false),
needs_gpu_visibility_update_after_repaint_(false),
@@ -695,8 +694,7 @@ void RenderWidgetHostViewMac::SelectionChanged(const string16& text,
}
void RenderWidgetHostViewMac::ShowingContextMenu(bool showing) {
- DCHECK_NE(is_showing_context_menu_, showing);
- is_showing_context_menu_ = showing;
+ RenderWidgetHostView::ShowingContextMenu(showing);
// If the menu was closed, restore the cursor to the saved version initially,
// as the renderer will not re-send it if there was no change.

Powered by Google App Engine
This is Rietveld 408576698