| 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 ui { | 17 namespace ui { |
| 18 | 18 |
| 19 namespace mojom { | 19 namespace mojom { |
| 20 class WindowTree; | 20 class WindowTree; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace ws { | 23 namespace ws { |
| 24 | 24 |
| 25 class Display; | 25 class Display; |
| 26 class ThreadedImageCursorsFactory; |
| 26 class WindowServer; | 27 class WindowServer; |
| 27 class WindowTree; | 28 class WindowTree; |
| 28 class WindowTreeBinding; | 29 class WindowTreeBinding; |
| 29 | 30 |
| 30 class WindowServerDelegate { | 31 class WindowServerDelegate { |
| 31 public: | 32 public: |
| 32 enum BindingType { | 33 enum BindingType { |
| 33 EMBED, | 34 EMBED, |
| 34 WINDOW_MANAGER, | 35 WINDOW_MANAGER, |
| 35 }; | 36 }; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 52 ws::WindowTree* tree, | 53 ws::WindowTree* tree, |
| 53 mojom::WindowTreeRequest* tree_request, | 54 mojom::WindowTreeRequest* tree_request, |
| 54 mojom::WindowTreeClientPtr* client); | 55 mojom::WindowTreeClientPtr* client); |
| 55 | 56 |
| 56 // Called prior to a new WindowTree being created for a | 57 // Called prior to a new WindowTree being created for a |
| 57 // WindowManagerWindowTreeFactory. |automatically_create_display_roots| | 58 // WindowManagerWindowTreeFactory. |automatically_create_display_roots| |
| 58 // mirrors that of CreateWindowTree(). See it for details. | 59 // mirrors that of CreateWindowTree(). See it for details. |
| 59 virtual void OnWillCreateTreeForWindowManager( | 60 virtual void OnWillCreateTreeForWindowManager( |
| 60 bool automatically_create_display_roots) = 0; | 61 bool automatically_create_display_roots) = 0; |
| 61 | 62 |
| 63 virtual ThreadedImageCursorsFactory* GetThreadedImageCursorsFactory() = 0; |
| 64 |
| 62 protected: | 65 protected: |
| 63 virtual ~WindowServerDelegate() {} | 66 virtual ~WindowServerDelegate() {} |
| 64 }; | 67 }; |
| 65 | 68 |
| 66 } // namespace ws | 69 } // namespace ws |
| 67 } // namespace ui | 70 } // namespace ui |
| 68 | 71 |
| 69 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ | 72 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ |
| OLD | NEW |