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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.h

Issue 159586: This CL fixes issue 11480: Support GTK keyboard themes (emacs keybindings).... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 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: chrome/browser/renderer_host/render_widget_host_view_gtk.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_gtk.h (版本 21941)
+++ chrome/browser/renderer_host/render_widget_host_view_gtk.h (工作副本)
@@ -17,8 +17,11 @@
#include "webkit/glue/webcursor.h"
class RenderWidgetHost;
-// A conveience wrapper class for GtkIMContext;
+// A convenience wrapper class for GtkIMContext;
class RenderWidgetHostViewGtkIMContext;
+// A convenience class for handling editor key bindings defined in gtk keyboard
+// theme.
+class RenderWidgetHostViewGtkKeyBindings;
typedef struct _GtkClipboard GtkClipboard;
typedef struct _GtkSelectionData GtkSelectionData;
@@ -67,6 +70,7 @@
base::ProcessId plugin_process_id);
virtual void DestroyPluginContainer(gfx::PluginWindowHandle container);
virtual void PluginProcessCrashed(base::ProcessId pid);
+ virtual bool UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event);
gfx::NativeView native_view() const { return view_.get(); }
@@ -123,9 +127,13 @@
// Used in OnGrabNotify() handler to track the focused state correctly.
bool was_focused_before_grab_;
- // A conveience wrapper object for GtkIMContext;
+ // A convenience wrapper object for GtkIMContext;
scoped_ptr<RenderWidgetHostViewGtkIMContext> im_context_;
+ // A convenience object for handling editor key bindings defined in gtk
+ // keyboard theme.
+ scoped_ptr<RenderWidgetHostViewGtkKeyBindings> key_bindings_handler_;
+
// Helper class that lets us allocate plugin containers and move them.
GtkPluginContainerManager plugin_container_manager_;

Powered by Google App Engine
This is Rietveld 408576698