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

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: Cleanup, disabled test on Android 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
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..04d4eb8e83e3ed1ca10a0e931839a9120096860d 100644
--- a/content/browser/frame_host/cross_process_frame_connector.h
+++ b/content/browser/frame_host/cross_process_frame_connector.h
@@ -27,8 +27,10 @@ struct FrameHostMsg_CompositorFrameSwappedACK_Params;
struct FrameHostMsg_ReclaimCompositorResources_Params;
namespace content {
+class WebCursor;
dcheng 2015/10/14 17:13:52 Nit: alphabetize
kenrb 2015/10/14 17:42:30 Done.
class RenderFrameProxyHost;
class RenderWidgetHostImpl;
+class RenderWidgetHostViewBase;
class RenderWidgetHostViewChildFrame;
// CrossProcessFrameConnector provides the platform view abstraction for
@@ -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_;

Powered by Google App Engine
This is Rietveld 408576698