Index: content/browser/web_contents/web_contents_impl.h |
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h |
index 384bdd307a89a215f2b7c2fa10f1f6939e7a1126..633a152fee49d748e4afb2462346d69cd15e684d 100644 |
--- a/content/browser/web_contents/web_contents_impl.h |
+++ b/content/browser/web_contents/web_contents_impl.h |
@@ -607,6 +607,9 @@ class CONTENT_EXPORT WebContentsImpl |
const std::vector<uint8_t>& proto) override; |
void OnRenderFrameProxyVisibilityChanged(bool visible) override; |
void SendScreenRects() override; |
+ const TextInputState* GetTextInputState() override; |
+ void UpdateTextInputState(RenderWidgetHostViewBase* rwhv, |
+ bool text_input_state_changed) override; |
// RenderFrameHostManager::Delegate ------------------------------------------ |
@@ -1324,6 +1327,13 @@ class CONTENT_EXPORT WebContentsImpl |
bool page_scale_factor_is_one_; |
+ // The RWHV which is currently focused. |
+ base::WeakPtr<RenderWidgetHostViewBase> view_with_active_text_input_; |
+ |
+ // A copy of the text input state from |view_with_active_text_input_| when |
+ // there exists one, or empty (type == ui::TEXT_INPUT_TYPE_NONE) if otherwise. |
+ scoped_ptr<TextInputState> text_input_state_; |
+ |
base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
base::WeakPtrFactory<WebContentsImpl> weak_factory_; |