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

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: Fixed a Compile Error 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 06242777d03075e3d1f04c75933689dc544bbf4d..cfa60c8658136640bf1769d6a41f7984a203609b 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -619,6 +619,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 ------------------------------------------
@@ -1338,6 +1341,10 @@ class CONTENT_EXPORT WebContentsImpl
bool page_scale_factor_is_one_;
+ // The RWHV which is currently focused.
+ TextInputState text_input_state_;
+ RenderWidgetHostViewBase* view_with_active_text_input_;
Charlie Reis 2016/03/15 18:32:01 This looks like it could get stale if the RWHV wen
EhsanK 2016/03/15 23:51:18 I added some notes above under your comment on 're
Charlie Reis 2016/03/16 16:55:13 Makes sense, though "eventually" concerns me. Is
EhsanK 2016/03/30 20:46:03 I tested the following: - Detach: An IPC comes
Charlie Reis 2016/03/30 21:52:47 What code makes this happen? I can't follow it by
EhsanK 2016/03/30 23:36:33 Sorry for the incomplete explanation. I meant to s
Charlie Reis 2016/03/31 05:59:16 Thanks for clarifying, and I agree about the WeakP
EhsanK 2016/04/01 00:59:16 It is more correct to say that NotifyHostDelegateA
EhsanK 2016/04/01 00:59:17 I meant to say (I think I did not publish previous
+
base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
base::WeakPtrFactory<WebContentsImpl> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698