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

Unified Diff: content/browser/frame_host/render_frame_host_delegate.h

Issue 2623483003: Support tracking focused node element for OOPIFs. (Closed)
Patch Set: Added the missing forward declaration Created 3 years, 11 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/frame_host/render_frame_host_delegate.h
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h
index 5298d583fbf05e20ce16fd645c95a1b08d261b03..94cc5615620620e3bb4b41db1f33e693da6a1577 100644
--- a/content/browser/frame_host/render_frame_host_delegate.h
+++ b/content/browser/frame_host/render_frame_host_delegate.h
@@ -36,11 +36,16 @@ class GeolocationServiceContext;
class WakeLockServiceContext;
}
+namespace gfx {
+class Rect;
+}
+
namespace content {
class FrameTreeNode;
class InterstitialPage;
class PageState;
class RenderFrameHost;
+class RenderFrameHostImpl;
class WebContents;
struct AXEventNotificationDetails;
struct AXLocationChangeNotificationDetails;
@@ -207,6 +212,14 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
const GURL& url);
+ // Called by |frame| to notify that it has received an update on focused
+ // element. |bounds_in_root_view| is the rectangle containing the element that
+ // is focused and is with respect to root frame's RenderWidgetHost's
+ // coordinate space.
+ virtual void OnFocusedElementChangedInFrame(
+ RenderFrameHostImpl* frame,
+ const gfx::Rect& bounds_in_root_view) {}
+
protected:
virtual ~RenderFrameHostDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698