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

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

Issue 2592243002: Perform direct routing of mouse events when the pointer is locked. (Closed)
Patch Set: transform event, add tests Created 3 years, 10 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_view_mac.h
diff --git a/content/browser/web_contents/web_contents_view_mac.h b/content/browser/web_contents/web_contents_view_mac.h
index 3b34cbd77178792ae4412a274d3b2acfb2bcbc80..4141b7f55f828327b0a5f149b9070313478e4f74 100644
--- a/content/browser/web_contents/web_contents_view_mac.h
+++ b/content/browser/web_contents/web_contents_view_mac.h
@@ -26,6 +26,7 @@
namespace content {
class PopupMenuHelper;
+class RenderWidgetHostViewMac;
class WebContentsImpl;
class WebContentsViewDelegate;
class WebContentsViewMac;
@@ -128,6 +129,13 @@ class WebContentsViewMac : public WebContentsView,
WebContentsImpl* web_contents() { return web_contents_; }
WebContentsViewDelegate* delegate() { return delegate_.get(); }
+ using RenderWidgetHostViewCreateFunction =
+ RenderWidgetHostViewMac* (*)(RenderWidgetHost*, bool);
+
+ // Used to override the creation of RenderWidgetHostViews in tests.
+ CONTENT_EXPORT static void InstallCreateHookForTests(
+ RenderWidgetHostViewCreateFunction create_render_widget_host_view);
+
private:
// Returns the fullscreen view, if one exists; otherwise, returns the content
// native view. This ensures that the view currently attached to a NSWindow is

Powered by Google App Engine
This is Rietveld 408576698