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> |
(...skipping 19 matching lines...) Expand all Loading... |
30 class WindowTreeBinding; | 30 class WindowTreeBinding; |
31 | 31 |
32 class WindowServerDelegate { | 32 class WindowServerDelegate { |
33 public: | 33 public: |
34 enum BindingType { | 34 enum BindingType { |
35 EMBED, | 35 EMBED, |
36 WINDOW_MANAGER, | 36 WINDOW_MANAGER, |
37 }; | 37 }; |
38 | 38 |
39 // WindowServer signal that display initialization can start. | 39 // WindowServer signal that display initialization can start. |
40 virtual void StartDisplayInit() = 0; | 40 virtual void StartDisplayInit(bool window_manager_connected) = 0; |
41 | 41 |
42 // Called once when the AcceleratedWidget of a Display is available. | 42 // Called once when the AcceleratedWidget of a Display is available. |
43 virtual void OnFirstDisplayReady(); | 43 virtual void OnFirstDisplayReady(); |
44 | 44 |
45 virtual void OnNoMoreDisplays() = 0; | 45 virtual void OnNoMoreDisplays() = 0; |
46 | 46 |
47 virtual bool IsTestConfig() const = 0; | 47 virtual bool IsTestConfig() const = 0; |
48 | 48 |
49 // Called when touchscreen coordinate transforms should be updated. For | 49 // Called when touchscreen coordinate transforms should be updated. For |
50 // example when displays or touch input devices are added/removed. | 50 // example when displays or touch input devices are added/removed. |
51 virtual void UpdateTouchTransforms() = 0; | 51 virtual void UpdateTouchTransforms() = 0; |
52 | 52 |
53 // Creates a WindowTreeBinding. Default implementation returns null, which | 53 // Creates a WindowTreeBinding. Default implementation returns null, which |
54 // creates DefaultBinding. | 54 // creates DefaultBinding. |
55 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( | 55 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( |
56 BindingType type, | 56 BindingType type, |
57 ws::WindowServer* window_server, | 57 ws::WindowServer* window_server, |
58 ws::WindowTree* tree, | 58 ws::WindowTree* tree, |
59 mojom::WindowTreeRequest* tree_request, | 59 mojom::WindowTreeRequest* tree_request, |
60 mojom::WindowTreeClientPtr* client); | 60 mojom::WindowTreeClientPtr* client); |
61 | 61 |
62 protected: | 62 protected: |
63 virtual ~WindowServerDelegate() {} | 63 virtual ~WindowServerDelegate() {} |
64 }; | 64 }; |
65 | 65 |
66 } // namespace ws | 66 } // namespace ws |
67 } // namespace ui | 67 } // namespace ui |
68 | 68 |
69 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ | 69 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ |
OLD | NEW |