| 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_WINDOW_SERVER_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_ |
| 6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> |
| 10 #include <string> | 11 #include <string> |
| 11 | 12 |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "components/mus/common/types.h" | 13 #include "components/mus/common/types.h" |
| 14 #include "components/mus/public/interfaces/window_tree.mojom.h" | 14 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 15 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" |
| 16 | 16 |
| 17 namespace mus { | 17 namespace mus { |
| 18 | 18 |
| 19 namespace mojom { | 19 namespace mojom { |
| 20 class Display; | 20 class Display; |
| 21 class WindowManagerFactory; | 21 class WindowManagerFactory; |
| 22 class WindowTree; | 22 class WindowTree; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 43 | 43 |
| 44 // Called once when the AcceleratedWidget of a Display is available. | 44 // Called once when the AcceleratedWidget of a Display is available. |
| 45 virtual void OnFirstDisplayReady(); | 45 virtual void OnFirstDisplayReady(); |
| 46 | 46 |
| 47 virtual void OnNoMoreDisplays() = 0; | 47 virtual void OnNoMoreDisplays() = 0; |
| 48 | 48 |
| 49 virtual bool IsTestConfig() const = 0; | 49 virtual bool IsTestConfig() const = 0; |
| 50 | 50 |
| 51 // Creates a WindowTreeBinding. Default implementation returns null, which | 51 // Creates a WindowTreeBinding. Default implementation returns null, which |
| 52 // creates DefaultBinding. | 52 // creates DefaultBinding. |
| 53 virtual scoped_ptr<WindowTreeBinding> CreateWindowTreeBinding( | 53 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( |
| 54 BindingType type, | 54 BindingType type, |
| 55 ws::WindowServer* window_server, | 55 ws::WindowServer* window_server, |
| 56 ws::WindowTree* tree, | 56 ws::WindowTree* tree, |
| 57 mojom::WindowTreeRequest* tree_request, | 57 mojom::WindowTreeRequest* tree_request, |
| 58 mojom::WindowTreeClientPtr* client); | 58 mojom::WindowTreeClientPtr* client); |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 virtual ~WindowServerDelegate() {} | 61 virtual ~WindowServerDelegate() {} |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace ws | 64 } // namespace ws |
| 65 } // namespace mus | 65 } // namespace mus |
| 66 | 66 |
| 67 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_ | 67 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_ |
| OLD | NEW |