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

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

Issue 2797453002: Rename DisplayCompositor to MojoFrameSinkManager. (Closed)
Patch Set: Fix comments. Created 3 years, 8 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 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 "cc/ipc/display_compositor.mojom.h" 10 #include "cc/ipc/frame_sink_manager.mojom.h"
msw 2017/04/03 19:22:13 fwd decl instead
kylechar 2017/04/03 19:54:16 Done.
11 #include "services/ui/public/interfaces/mus_constants.mojom.h" 11 #include "services/ui/public/interfaces/mus_constants.mojom.h"
12 #include "services/ui/public/interfaces/window_tree.mojom.h" 12 #include "services/ui/public/interfaces/window_tree.mojom.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 namespace ws { 16 namespace ws {
17 17
18 class ServerWindow; 18 class ServerWindow;
19 19
20 class ServerWindowDelegate { 20 class ServerWindowDelegate {
21 public: 21 public:
22 // Returns a display compositor interface pointer. There is only one 22 // Returns a display compositor interface pointer. There is only one
msw 2017/04/03 19:22:13 update comment
kylechar 2017/04/03 19:54:16 Done.
23 // DisplayCompositor running in the system. 23 // MojoFrameSinkManager running in the system.
24 virtual cc::mojom::DisplayCompositor* GetDisplayCompositor() = 0; 24 virtual cc::mojom::FrameSinkManager* GetFrameSinkManager() = 0;
25 25
26 // Returns the root of the window tree to which this |window| is attached. 26 // Returns the root of the window tree to which this |window| is attached.
27 // Returns null if this window is not attached up through to a root window. 27 // Returns null if this window is not attached up through to a root window.
28 virtual ServerWindow* GetRootWindow(const ServerWindow* window) = 0; 28 virtual ServerWindow* GetRootWindow(const ServerWindow* window) = 0;
29 29
30 protected: 30 protected:
31 virtual ~ServerWindowDelegate() {} 31 virtual ~ServerWindowDelegate() {}
32 }; 32 };
33 33
34 } // namespace ws 34 } // namespace ws
35 35
36 } // namespace ui 36 } // namespace ui
37 37
38 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ 38 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698