OLD | NEW |
---|---|
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_WINDOW_SERVER_DELEGATE_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ |
6 #define SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ | 6 #define SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "mojo/public/cpp/bindings/interface_request.h" | 13 #include "mojo/public/cpp/bindings/interface_request.h" |
14 #include "services/ui/common/types.h" | 14 #include "services/ui/common/types.h" |
15 #include "services/ui/public/interfaces/window_tree.mojom.h" | 15 #include "services/ui/public/interfaces/window_tree.mojom.h" |
16 | 16 |
17 namespace display { | |
18 | |
19 class ScreenBase; | |
20 | |
21 } // namespace | |
kylechar
2017/04/19 18:06:08
Fix namespace close comment.
sky
2017/04/19 19:30:03
This is no longer needed.
| |
22 | |
17 namespace ui { | 23 namespace ui { |
18 | 24 |
19 namespace mojom { | 25 namespace mojom { |
20 class WindowTree; | 26 class WindowTree; |
21 } | 27 } |
22 | 28 |
23 namespace ws { | 29 namespace ws { |
24 | 30 |
25 class Display; | 31 class Display; |
26 class WindowServer; | 32 class WindowServer; |
(...skipping 19 matching lines...) Expand all Loading... | |
46 | 52 |
47 // Creates a WindowTreeBinding. Default implementation returns null, which | 53 // Creates a WindowTreeBinding. Default implementation returns null, which |
48 // creates DefaultBinding. | 54 // creates DefaultBinding. |
49 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( | 55 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( |
50 BindingType type, | 56 BindingType type, |
51 ws::WindowServer* window_server, | 57 ws::WindowServer* window_server, |
52 ws::WindowTree* tree, | 58 ws::WindowTree* tree, |
53 mojom::WindowTreeRequest* tree_request, | 59 mojom::WindowTreeRequest* tree_request, |
54 mojom::WindowTreeClientPtr* client); | 60 mojom::WindowTreeClientPtr* client); |
55 | 61 |
62 // Called prior to a new WindowTree being created for a | |
63 // WindowManagerWindowTreeFactory. |automatically_create_display_roots| | |
64 // mirrors that of CreateWindowTree(). See it for details. | |
65 virtual void OnWillCreateTreeForWindowManager( | |
66 bool automatically_create_display_roots); | |
67 | |
68 // NOTE: only valid when |automatically_create_display_roots| is false. | |
69 virtual display::ScreenBase* GetScreen() = 0; | |
70 | |
56 protected: | 71 protected: |
57 virtual ~WindowServerDelegate() {} | 72 virtual ~WindowServerDelegate() {} |
58 }; | 73 }; |
59 | 74 |
60 } // namespace ws | 75 } // namespace ws |
61 } // namespace ui | 76 } // namespace ui |
62 | 77 |
63 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ | 78 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ |
OLD | NEW |