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

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

Issue 2481263002: Introduce Display Compositor mojo interface. Use InProcessContextProvider. (Closed)
Patch Set: Improved comment 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 cc {
14 namespace mojom {
15 class DisplayCompositor;
16 }
17 }
18
13 namespace ui { 19 namespace ui {
14 20
15 class DisplayCompositor;
16 21
17 namespace ws { 22 namespace ws {
18 23
19 struct ClientWindowId; 24 struct ClientWindowId;
20 class ServerWindow; 25 class ServerWindow;
21 struct WindowId; 26 struct WindowId;
22 27
23 class ServerWindowDelegate { 28 class ServerWindowDelegate {
24 public: 29 public:
25 virtual DisplayCompositor* GetDisplayCompositor() = 0; 30 virtual cc::mojom::DisplayCompositor* GetDisplayCompositor() = 0;
rjkroege 2016/11/21 23:05:36 doc method?
Fady Samuel 2016/11/22 01:02:23 Done.
26 31
27 // Returns the root of the window tree to which this |window| is attached. 32 // Returns the root of the window tree to which this |window| is attached.
28 // Returns null if this window is not attached up through to a root window. 33 // Returns null if this window is not attached up through to a root window.
29 virtual ServerWindow* GetRootWindow(const ServerWindow* window) = 0; 34 virtual ServerWindow* GetRootWindow(const ServerWindow* window) = 0;
30 35
31 protected: 36 protected:
32 virtual ~ServerWindowDelegate() {} 37 virtual ~ServerWindowDelegate() {}
33 }; 38 };
34 39
35 } // namespace ws 40 } // namespace ws
36 41
37 } // namespace ui 42 } // namespace ui
38 43
39 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ 44 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698