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

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

Issue 2571583008: Support tracking focused element for OOPIFs. (Closed)
Patch Set: Do not call ScrollFocusedEditableNodeIntoRect for OOPIFs. Created 4 years 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 645cf66c35dc9750709b9de543e0436eb5efe1ee..e333f7c9b1b7d74261bd38a3271e4454eff2a88c 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -485,6 +485,9 @@ class CONTENT_EXPORT WebContentsImpl
std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
const GURL& url) override;
void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
+ void OnFocusedElementChangedInFrame(
+ RenderFrameHostImpl* frame,
+ const gfx::Rect& bounds_in_root_view) override;
// RenderViewHostDelegate ----------------------------------------------------
RenderViewHostDelegateView* GetDelegateView() override;
@@ -555,6 +558,8 @@ class CONTENT_EXPORT WebContentsImpl
bool IsOverridingUserAgent() override;
bool IsJavaScriptDialogShowing() const override;
bool HideDownloadUI() const override;
+ bool IsFocusedElementEditable() override;
+ void ClearFocusedElement() override;
// NavigatorDelegate ---------------------------------------------------------
@@ -662,6 +667,7 @@ class CONTENT_EXPORT WebContentsImpl
TextInputManager* GetTextInputManager() override;
bool OnUpdateDragCursor() override;
bool AddDomainInfoToRapporSample(rappor::Sample* sample) override;
+ void FocusedNodeTouched(bool editable) override;
// RenderFrameHostManager::Delegate ------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698