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

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

Issue 2411793008: Adds BeginFrameControl via DevTools.
Patch Set: BFC prototype v2 with allow_latency_opts and waiting for BFOs. Created 4 years, 1 month 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.h
diff --git a/content/browser/web_contents/web_contents_view.h b/content/browser/web_contents/web_contents_view.h
index e4401f85bf3f6c18dfa9bcfd76ed3a6e24a723ef..ec7b2852a2a28d988a597101c2ca5bb0b1516033 100644
--- a/content/browser/web_contents/web_contents_view.h
+++ b/content/browser/web_contents/web_contents_view.h
@@ -14,6 +14,10 @@
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/native_widget_types.h"
+namespace ui {
+class Compositor;
+}
+
namespace content {
class RenderViewHost;
class RenderWidgetHost;
@@ -115,6 +119,10 @@ class WebContentsView {
// Invoked to enable/disable overscroll gesture navigation.
virtual void SetOverscrollControllerEnabled(bool enabled) = 0;
+ // Returns the Compositor currently responsible for the view. Only supported
+ // on aura; is null on all other platforms.
+ virtual ui::Compositor* GetCompositor() const = 0;
+
#if defined(OS_MACOSX)
// Allowing other views disables optimizations which assume that only a single
// WebContents is present.

Powered by Google App Engine
This is Rietveld 408576698