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

Unified Diff: ui/aura/window_port.h

Issue 2878113002: mus: Embedder can request and observe BeginFrame for embedded client. (Closed)
Patch Set: . Created 3 years, 7 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
« services/ui/public/interfaces/window_tree.mojom ('K') | « ui/aura/window.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_port.h
diff --git a/ui/aura/window_port.h b/ui/aura/window_port.h
index 6774dc6edb47012e42e7813563be2f1c824e2c20..c3454ff298399d1d6f3d8bd52c115286465d68f2 100644
--- a/ui/aura/window_port.h
+++ b/ui/aura/window_port.h
@@ -83,6 +83,11 @@ class AURA_EXPORT WindowPort {
// Get the current cc::SurfaceId.
virtual cc::SurfaceId GetSurfaceId() const = 0;
+ // Requests to be notified (via |callback|) when the client app embedded
+ // inside this window receives a BeginFrame.
+ virtual void SetNeedsBeginFrames(bool needs,
+ base::RepeatingClosure callback) = 0;
+
virtual void OnWindowAddedToRootWindow() = 0;
virtual void OnWillRemoveWindowFromRootWindow() = 0;
« services/ui/public/interfaces/window_tree.mojom ('K') | « ui/aura/window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698