| 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 COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ |
| 6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ | 6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class Display; | 28 class Display; |
| 29 class ServerWindow; | 29 class ServerWindow; |
| 30 class WindowTree; | 30 class WindowTree; |
| 31 class WindowTreeBinding; | 31 class WindowTreeBinding; |
| 32 | 32 |
| 33 class ConnectionManagerDelegate { | 33 class ConnectionManagerDelegate { |
| 34 public: | 34 public: |
| 35 // Called once when the AcceleratedWidget of a Display is available. | 35 // Called once when the AcceleratedWidget of a Display is available. |
| 36 virtual void OnFirstDisplayReady(); | 36 virtual void OnFirstDisplayReady(); |
| 37 | 37 |
| 38 virtual void OnNoMoreRootConnections() = 0; | 38 virtual void OnNoMoreDisplays() = 0; |
| 39 | 39 |
| 40 // Creates a WindowTreeBinding in response to Embed() calls on the | 40 // Creates a WindowTreeBinding in response to Embed() calls on the |
| 41 // ConnectionManager. | 41 // ConnectionManager. |
| 42 virtual scoped_ptr<WindowTreeBinding> CreateWindowTreeBindingForEmbedAtWindow( | 42 virtual scoped_ptr<WindowTreeBinding> CreateWindowTreeBindingForEmbedAtWindow( |
| 43 ws::ConnectionManager* connection_manager, | 43 ws::ConnectionManager* connection_manager, |
| 44 ws::WindowTree* tree, | 44 ws::WindowTree* tree, |
| 45 mojom::WindowTreeRequest tree_request, | 45 mojom::WindowTreeRequest tree_request, |
| 46 mojom::WindowTreeClientPtr client) = 0; | 46 mojom::WindowTreeClientPtr client) = 0; |
| 47 | 47 |
| 48 // Called if no Displays have been created, but a WindowManagerFactory has | 48 // Called if no Displays have been created, but a WindowManagerFactory has |
| 49 // been set. | 49 // been set. |
| 50 virtual void CreateDefaultDisplays() = 0; | 50 virtual void CreateDefaultDisplays() = 0; |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 virtual ~ConnectionManagerDelegate() {} | 53 virtual ~ConnectionManagerDelegate() {} |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace ws | 56 } // namespace ws |
| 57 } // namespace mus | 57 } // namespace mus |
| 58 | 58 |
| 59 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ | 59 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ |
| OLD | NEW |