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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // Creates a WindowTreeBinding. Default implementation returns null, which | 47 // Creates a WindowTreeBinding. Default implementation returns null, which |
48 // creates DefaultBinding. | 48 // creates DefaultBinding. |
49 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( | 49 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( |
50 BindingType type, | 50 BindingType type, |
51 ws::WindowServer* window_server, | 51 ws::WindowServer* window_server, |
52 ws::WindowTree* tree, | 52 ws::WindowTree* tree, |
53 mojom::WindowTreeRequest* tree_request, | 53 mojom::WindowTreeRequest* tree_request, |
54 mojom::WindowTreeClientPtr* client); | 54 mojom::WindowTreeClientPtr* client); |
55 | 55 |
| 56 // Called prior to a new WindowTree being created for a |
| 57 // WindowManagerWindowTreeFactory. |automatically_create_display_roots| |
| 58 // mirrors that of CreateWindowTree(). See it for details. |
| 59 virtual void OnWillCreateTreeForWindowManager( |
| 60 bool automatically_create_display_roots); |
| 61 |
56 protected: | 62 protected: |
57 virtual ~WindowServerDelegate() {} | 63 virtual ~WindowServerDelegate() {} |
58 }; | 64 }; |
59 | 65 |
60 } // namespace ws | 66 } // namespace ws |
61 } // namespace ui | 67 } // namespace ui |
62 | 68 |
63 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ | 69 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ |
OLD | NEW |