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

Unified Diff: content/browser/renderer_host/render_widget_host_view_gtk.cc

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_gtk.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_gtk.cc b/content/browser/renderer_host/render_widget_host_view_gtk.cc
index 863dc3e207ee08e8f54032cd6b36679d00a7e611..72d71a8c98bfa0df74d4a0ea93e0f2a1c565c12a 100644
--- a/content/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/content/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -244,7 +244,7 @@ class RenderWidgetHostViewGtkWidget {
gdk_window_set_cursor(gtk_widget_get_window(widget), NULL);
// If we are showing a context menu, maintain the illusion that webkit has
// focus.
- if (!host_view->is_showing_context_menu_) {
+ if (!host_view->showing_context_menu()) {
host_view->GetRenderWidgetHost()->SetActive(false);
host_view->GetRenderWidgetHost()->Blur();
}
@@ -566,7 +566,6 @@ RenderWidgetHostViewGtk::RenderWidgetHostViewGtk(RenderWidgetHost* widget_host)
about_to_validate_and_paint_(false),
is_hidden_(false),
is_loading_(false),
- is_showing_context_menu_(false),
parent_(NULL),
is_popup_first_mouse_release_(true),
was_imcontext_focused_before_grab_(false),
@@ -933,10 +932,6 @@ void RenderWidgetHostViewGtk::SelectionBoundsChanged(
im_context_->UpdateCaretBounds(start_rect.Union(end_rect));
}
-void RenderWidgetHostViewGtk::ShowingContextMenu(bool showing) {
- is_showing_context_menu_ = showing;
-}
-
#if !defined(TOOLKIT_VIEWS)
GtkWidget* RenderWidgetHostViewGtk::BuildInputMethodsGtkMenu() {
return im_context_->BuildInputMethodsGtkMenu();

Powered by Google App Engine
This is Rietveld 408576698