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

Unified Diff: content/public/browser/render_widget_host_view.h

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 6 years, 7 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 | « content/content_tests.gypi ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_widget_host_view.h
diff --git a/content/public/browser/render_widget_host_view.h b/content/public/browser/render_widget_host_view.h
index 3b0dd65d4c5e6a45f209fd5e5cedd34fb18f4924..1620e24fa52f75f4a1c34a46b906df859e01aea9 100644
--- a/content/public/browser/render_widget_host_view.h
+++ b/content/public/browser/render_widget_host_view.h
@@ -21,6 +21,10 @@ class Rect;
class Size;
}
+namespace ui {
+class TextInputClient;
+}
+
namespace content {
class RenderWidgetHost;
@@ -63,6 +67,13 @@ class CONTENT_EXPORT RenderWidgetHostView {
virtual gfx::NativeViewId GetNativeViewId() const = 0;
virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0;
+ // Returns a ui::TextInputClient to support text input or NULL if this RWHV
+ // doesn't support text input.
+ // Note: Not all the platforms use ui::InputMethod and ui::TextInputClient for
+ // text input. Some platforms (Mac and Android for example) use their own
+ // text input system.
+ virtual ui::TextInputClient* GetTextInputClient() = 0;
+
// Set focus to the associated View component.
virtual void Focus() = 0;
// Returns true if the View currently has the focus.
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698