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

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

Issue 1382593004: Allow out-of-process iframes to update the mouse cursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits addressed Created 5 years, 2 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
« no previous file with comments | « no previous file | content/browser/frame_host/cross_process_frame_connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/cross_process_frame_connector.h
diff --git a/content/browser/frame_host/cross_process_frame_connector.h b/content/browser/frame_host/cross_process_frame_connector.h
index 48547213e133ad0bcff5e4a64dbf670d559d3adb..abe3a044a17fa368770387db8bcc06c92994e064 100644
--- a/content/browser/frame_host/cross_process_frame_connector.h
+++ b/content/browser/frame_host/cross_process_frame_connector.h
@@ -29,7 +29,9 @@ struct FrameHostMsg_ReclaimCompositorResources_Params;
namespace content {
class RenderFrameProxyHost;
class RenderWidgetHostImpl;
+class RenderWidgetHostViewBase;
class RenderWidgetHostViewChildFrame;
+class WebCursor;
// CrossProcessFrameConnector provides the platform view abstraction for
// RenderWidgetHostViewChildFrame allowing RWHVChildFrame to remain ignorant
@@ -96,6 +98,7 @@ class CONTENT_EXPORT CrossProcessFrameConnector {
gfx::Rect ChildFrameRect();
float device_scale_factor() const { return device_scale_factor_; }
void GetScreenInfo(blink::WebScreenInfo* results);
+ void UpdateCursor(const WebCursor& cursor);
private:
// Handlers for messages received from the parent frame.
@@ -113,6 +116,9 @@ class CONTENT_EXPORT CrossProcessFrameConnector {
void SetDeviceScaleFactor(float scale_factor);
void SetSize(gfx::Rect frame_rect);
+ // Retrieve the view for the top-level frame under the same WebContents.
+ RenderWidgetHostViewBase* GetRootRenderWidgetHostView();
+
// The RenderFrameProxyHost that routes messages to the parent frame's
// renderer process.
RenderFrameProxyHost* frame_proxy_in_parent_renderer_;
« no previous file with comments | « no previous file | content/browser/frame_host/cross_process_frame_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698