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

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

Issue 165293: Supports Gtk keyboard themes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 (revision 25695)
+++ chrome/browser/renderer_host/render_widget_host_view_gtk.h (working copy)
@@ -21,6 +21,10 @@
class RenderWidgetHost;
// A conveience wrapper class for GtkIMContext;
class GtkIMContextWrapper;
+// A convenience class for handling editor key bindings defined in gtk keyboard
+// theme.
+class GtkKeyBindingsHandler;
+class NativeWebKeyboardEvent;
typedef struct _GtkClipboard GtkClipboard;
typedef struct _GtkSelectionData GtkSelectionData;
@@ -71,6 +75,13 @@
void Paint(const gfx::Rect&);
+ // Called by GtkIMContextWrapper to forward a keyboard event to renderer.
+ // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method
+ // calls GtkKeyBindingsHandler::Match() against the event and send matched
+ // edit commands to renderer by calling
+ // RenderWidgetHost::ForwardEditCommandsForNextKeyEvent().
+ void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event);
+
private:
friend class RenderWidgetHostViewGtkWidget;
@@ -116,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<GtkIMContextWrapper> im_context_;
+ // A convenience object for handling editor key bindings defined in gtk
+ // keyboard theme.
+ scoped_ptr<GtkKeyBindingsHandler> key_bindings_handler_;
+
// Helper class that lets us allocate plugin containers and move them.
GtkPluginContainerManager plugin_container_manager_;
};
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698