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 ee82a54e334e9dd9e0ce129274d691b397a475e8..581f3464ecc5104e515107b170e6b023eb39eb6d 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 ------------------------------------------ |
@@ -1326,6 +1329,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_; |