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

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, 9 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: 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 7c89136bc9656844a692c397e25ead1680cfca5d..b3a17301fe43afd14e9f2bcf9aadb3c9e47fe34e 100644
--- a/content/public/browser/render_widget_host_view.h
+++ b/content/public/browser/render_widget_host_view.h
@@ -24,6 +24,10 @@ class Rect;
class Size;
}
+namespace ui {
+class TextInputClient;
+}
+
namespace content {
class BrowserAccessibilityManager;
@@ -86,6 +90,9 @@ class CONTENT_EXPORT RenderWidgetHostView {
virtual bool HasFocus() const = 0;
// Returns true is the current display surface is available.
virtual bool IsSurfaceAvailableForCopy() const = 0;
+ // Returns a ui::TextInputClient to support text input or NULL if this RWHV
msw 2014/03/11 00:58:50 nit: order after GetNativeView* or GetSelectedText
Yuki 2014/03/11 15:27:37 Done.
+ // doesn't support text input.
+ virtual ui::TextInputClient* GetTextInputClient() = 0;
// Shows/hides the view. These must always be called together in pairs.
// It is not legal to call Hide() multiple times in a row.

Powered by Google App Engine
This is Rietveld 408576698