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 29 matching lines...) Expand all Loading... | |
40 // been set. | 40 // been set. |
41 virtual void CreateDefaultDisplays() = 0; | 41 virtual void CreateDefaultDisplays() = 0; |
42 | 42 |
43 // Called once when the AcceleratedWidget of a Display is available. | 43 // Called once when the AcceleratedWidget of a Display is available. |
44 virtual void OnFirstDisplayReady(); | 44 virtual void OnFirstDisplayReady(); |
45 | 45 |
46 virtual void OnNoMoreDisplays() = 0; | 46 virtual void OnNoMoreDisplays() = 0; |
47 | 47 |
48 virtual bool IsTestConfig() const = 0; | 48 virtual bool IsTestConfig() const = 0; |
49 | 49 |
50 virtual void UpdateTouchTransforms() = 0; | |
sky
2016/08/25 19:18:43
Add a comment as to what this is for.
kylechar
2016/08/25 20:26:01
Done.
| |
51 | |
50 // Creates a WindowTreeBinding. Default implementation returns null, which | 52 // Creates a WindowTreeBinding. Default implementation returns null, which |
51 // creates DefaultBinding. | 53 // creates DefaultBinding. |
52 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( | 54 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( |
53 BindingType type, | 55 BindingType type, |
54 ws::WindowServer* window_server, | 56 ws::WindowServer* window_server, |
55 ws::WindowTree* tree, | 57 ws::WindowTree* tree, |
56 mojom::WindowTreeRequest* tree_request, | 58 mojom::WindowTreeRequest* tree_request, |
57 mojom::WindowTreeClientPtr* client); | 59 mojom::WindowTreeClientPtr* client); |
58 | 60 |
59 protected: | 61 protected: |
60 virtual ~WindowServerDelegate() {} | 62 virtual ~WindowServerDelegate() {} |
61 }; | 63 }; |
62 | 64 |
63 } // namespace ws | 65 } // namespace ws |
64 } // namespace ui | 66 } // namespace ui |
65 | 67 |
66 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ | 68 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ |
OLD | NEW |