| 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_SERVER_WINDOW_DELEGATE_H_ | 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ |
| 6 #define SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ | 6 #define SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "services/ui/public/interfaces/mus_constants.mojom.h" | 10 #include "services/ui/public/interfaces/mus_constants.mojom.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 struct ClientWindowId; | 24 struct ClientWindowId; |
| 25 class ServerWindow; | 25 class ServerWindow; |
| 26 struct WindowId; | 26 struct WindowId; |
| 27 | 27 |
| 28 class ServerWindowDelegate { | 28 class ServerWindowDelegate { |
| 29 public: | 29 public: |
| 30 // Returns a display compositor interface pointer. There is only one | 30 // Returns a display compositor interface pointer. There is only one |
| 31 // DisplayCompositor running in the system. | 31 // DisplayCompositor running in the system. |
| 32 virtual cc::mojom::DisplayCompositor* GetDisplayCompositor() = 0; | 32 virtual cc::mojom::DisplayCompositor* GetDisplayCompositor() = 0; |
| 33 | 33 |
| 34 virtual const cc::SurfaceId& GetRootSurfaceId() const = 0; |
| 35 |
| 34 // Returns the root of the window tree to which this |window| is attached. | 36 // Returns the root of the window tree to which this |window| is attached. |
| 35 // Returns null if this window is not attached up through to a root window. | 37 // Returns null if this window is not attached up through to a root window. |
| 36 virtual ServerWindow* GetRootWindow(const ServerWindow* window) = 0; | 38 virtual ServerWindow* GetRootWindow(const ServerWindow* window) = 0; |
| 37 | 39 |
| 38 protected: | 40 protected: |
| 39 virtual ~ServerWindowDelegate() {} | 41 virtual ~ServerWindowDelegate() {} |
| 40 }; | 42 }; |
| 41 | 43 |
| 42 } // namespace ws | 44 } // namespace ws |
| 43 | 45 |
| 44 } // namespace ui | 46 } // namespace ui |
| 45 | 47 |
| 46 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ | 48 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ |
| OLD | NEW |