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

Side by Side Diff: services/ui/ws/server_window_delegate.h

Issue 2474113002: Mus+Ash: Unified BeginFrame Skeleton (Closed)
Patch Set: Rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_
6 #define SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ 6 #define SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "services/ui/public/interfaces/mus_constants.mojom.h" 10 #include "services/ui/public/interfaces/mus_constants.mojom.h"
11 #include "services/ui/public/interfaces/window_tree.mojom.h" 11 #include "services/ui/public/interfaces/window_tree.mojom.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 class DisplayCompositor; 15 class DisplayCompositor;
16 16
17 namespace ws { 17 namespace ws {
18 18
19 struct ClientWindowId; 19 struct ClientWindowId;
20 class ServerWindow; 20 class ServerWindow;
21 struct WindowId; 21 struct WindowId;
22 22
23 class ServerWindowDelegate { 23 class ServerWindowDelegate {
24 public: 24 public:
25 virtual DisplayCompositor* GetDisplayCompositor() = 0; 25 virtual DisplayCompositor* GetDisplayCompositor() = 0;
26 26
27 virtual void OnScheduleWindowPaint(ServerWindow* window) = 0;
28
29 // Returns the root of the window tree to which this |window| is attached. 27 // Returns the root of the window tree to which this |window| is attached.
30 // Returns null if this window is not attached up through to a root window. 28 // Returns null if this window is not attached up through to a root window.
31 virtual const ServerWindow* GetRootWindow( 29 virtual ServerWindow* GetRootWindow(const ServerWindow* window) = 0;
32 const ServerWindow* window) const = 0;
33 30
34 protected: 31 protected:
35 virtual ~ServerWindowDelegate() {} 32 virtual ~ServerWindowDelegate() {}
36 }; 33 };
37 34
38 } // namespace ws 35 } // namespace ws
39 36
40 } // namespace ui 37 } // namespace ui
41 38
42 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ 39 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/server_window_compositor_frame_sink_manager.cc ('k') | services/ui/ws/test_server_window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698