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