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 77f73eab30e09edb9196b3b5000b5d75966a7f28..d5f4ec1088d266ba400f344e35bb860d02b2659d 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; |
+ 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. |
+ TextInputState text_input_state_; |
+ |
base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
base::WeakPtrFactory<WebContentsImpl> weak_factory_; |