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 base { | 17 namespace base { |
18 class SingleThreadTaskRunner; | 18 class SingleThreadTaskRunner; |
19 } | 19 } |
20 | 20 |
21 namespace ui { | 21 namespace ui { |
22 | 22 |
23 class ImageCursors; | 23 class ImageCursorsHolder; |
24 | 24 |
25 namespace mojom { | 25 namespace mojom { |
26 class WindowTree; | 26 class WindowTree; |
27 } | 27 } |
28 | 28 |
29 namespace ws { | 29 namespace ws { |
30 | 30 |
31 class Display; | 31 class Display; |
32 class WindowServer; | 32 class WindowServer; |
33 class WindowTree; | 33 class WindowTree; |
(...skipping 29 matching lines...) Expand all Loading... |
63 // WindowManagerWindowTreeFactory. |automatically_create_display_roots| | 63 // WindowManagerWindowTreeFactory. |automatically_create_display_roots| |
64 // mirrors that of CreateWindowTree(). See it for details. | 64 // mirrors that of CreateWindowTree(). See it for details. |
65 virtual void OnWillCreateTreeForWindowManager( | 65 virtual void OnWillCreateTreeForWindowManager( |
66 bool automatically_create_display_roots) = 0; | 66 bool automatically_create_display_roots) = 0; |
67 | 67 |
68 // Returns a valid task runner which can be used to load resources. | 68 // Returns a valid task runner which can be used to load resources. |
69 virtual scoped_refptr<base::SingleThreadTaskRunner>& GetResourceRunner() = 0; | 69 virtual scoped_refptr<base::SingleThreadTaskRunner>& GetResourceRunner() = 0; |
70 | 70 |
71 // The returned weak pointer can be used to manipulate the cursor, and should | 71 // The returned weak pointer can be used to manipulate the cursor, and should |
72 // only be dereferenced on the task runner returned by GetResourceRunner(). | 72 // only be dereferenced on the task runner returned by GetResourceRunner(). |
73 virtual base::WeakPtr<ui::ImageCursors> GetImageCursorsWeakPtr() = 0; | 73 virtual base::WeakPtr<ui::ImageCursorsHolder> |
| 74 GetImageCursorsHolderWeakPtr() = 0; |
74 | 75 |
75 protected: | 76 protected: |
76 virtual ~WindowServerDelegate() {} | 77 virtual ~WindowServerDelegate() {} |
77 }; | 78 }; |
78 | 79 |
79 } // namespace ws | 80 } // namespace ws |
80 } // namespace ui | 81 } // namespace ui |
81 | 82 |
82 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ | 83 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ |
OLD | NEW |