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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 1652483002: Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 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/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..a09ef03815a4c696fc8f754016f069f9b8778b3c 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,10 @@ class CONTENT_EXPORT WebContentsImpl
bool page_scale_factor_is_one_;
+ // The RWHV which is currently focused.
+ TextInputState text_input_state_;
+ base::WeakPtr<RenderWidgetHostViewBase> view_with_active_text_input_;
Charlie Reis 2016/04/01 21:24:10 nit: List before text_input_state_, and maybe ment
EhsanK 2016/04/02 03:14:02 Done.
+
base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
base::WeakPtrFactory<WebContentsImpl> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698