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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_WINDOW_PORT_H_ 5 #ifndef UI_AURA_WINDOW_PORT_H_
6 #define UI_AURA_WINDOW_PORT_H_ 6 #define UI_AURA_WINDOW_PORT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 int64_t old_value, 76 int64_t old_value,
77 std::unique_ptr<ui::PropertyData> data) = 0; 77 std::unique_ptr<ui::PropertyData> data) = 0;
78 78
79 // Called for creating a cc::CompositorFrameSink for the window. 79 // Called for creating a cc::CompositorFrameSink for the window.
80 virtual std::unique_ptr<cc::CompositorFrameSink> 80 virtual std::unique_ptr<cc::CompositorFrameSink>
81 CreateCompositorFrameSink() = 0; 81 CreateCompositorFrameSink() = 0;
82 82
83 // Get the current cc::SurfaceId. 83 // Get the current cc::SurfaceId.
84 virtual cc::SurfaceId GetSurfaceId() const = 0; 84 virtual cc::SurfaceId GetSurfaceId() const = 0;
85 85
86 // Requests to be notified (via |callback|) when the client app embedded
87 // inside this window receives a BeginFrame.
88 virtual void SetNeedsBeginFrames(bool needs,
89 base::RepeatingClosure callback) = 0;
90
86 virtual void OnWindowAddedToRootWindow() = 0; 91 virtual void OnWindowAddedToRootWindow() = 0;
87 virtual void OnWillRemoveWindowFromRootWindow() = 0; 92 virtual void OnWillRemoveWindowFromRootWindow() = 0;
88 93
89 protected: 94 protected:
90 // Returns the WindowPort associated with a Window. 95 // Returns the WindowPort associated with a Window.
91 static WindowPort* Get(Window* window); 96 static WindowPort* Get(Window* window);
92 97
93 // Returns the ObserverList of a Window. 98 // Returns the ObserverList of a Window.
94 static base::ObserverList<WindowObserver, true>* GetObservers(Window* window); 99 static base::ObserverList<WindowObserver, true>* GetObservers(Window* window);
95 }; 100 };
96 101
97 } // namespace aura 102 } // namespace aura
98 103
99 #endif // UI_AURA_WINDOW_PORT_H_ 104 #endif // UI_AURA_WINDOW_PORT_H_
OLDNEW
« 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