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_; |