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

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

Issue 6480036: Add input method support for views and integrate ibus input framework (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 10 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
« no previous file with comments | « build/linux/system.gyp ('k') | chrome/browser/renderer_host/render_widget_host_view_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_views.h
diff --git a/chrome/browser/renderer_host/render_widget_host_view_views.h b/chrome/browser/renderer_host/render_widget_host_view_views.h
index fa1b9298c4f81c0baec0fa8efc1b9b809f3bf947..90087d137c7830dae6fb84bfb5bfbb1cf348c8e4 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_views.h
+++ b/chrome/browser/renderer_host/render_widget_host_view_views.h
@@ -20,6 +20,7 @@
#include "views/view.h"
#include "webkit/glue/webcursor.h"
+class IMEContextHandler;
class RenderWidgetHost;
struct NativeWebKeyboardEvent;
@@ -107,8 +108,11 @@ class RenderWidgetHostViewViews : public RenderWidgetHostView,
virtual void DidGainFocus();
virtual void WillLoseFocus();
+ // Forwards a web keyboard event to renderer.
+ void ForwardWebKeyboardEvent(const NativeWebKeyboardEvent& event);
+
// Forwards a keyboard event to renderer.
- void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event);
+ void ForwardKeyEvent(const views::KeyEvent& event);
// Views touch events, overridden from views::View.
virtual View::TouchStatus OnTouchEvent(const views::TouchEvent& e);
@@ -176,6 +180,10 @@ class RenderWidgetHostViewViews : public RenderWidgetHostView,
// removed from the list on an ET_TOUCH_RELEASED event.
WebKit::WebTouchEvent touch_event_;
+ // Input method context used to translating sequence of key events into other
+ // languages.
+ scoped_ptr<IMEContextHandler> ime_context_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewViews);
};
« no previous file with comments | « build/linux/system.gyp ('k') | chrome/browser/renderer_host/render_widget_host_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698