| 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 11 matching lines...) Expand all Loading... |
| 22 namespace ws { | 22 namespace ws { |
| 23 | 23 |
| 24 class ServerWindow; | 24 class ServerWindow; |
| 25 | 25 |
| 26 class ServerWindowDelegate { | 26 class ServerWindowDelegate { |
| 27 public: | 27 public: |
| 28 // Returns a display compositor interface pointer. There is only one | 28 // Returns a display compositor interface pointer. There is only one |
| 29 // DisplayCompositor running in the system. | 29 // DisplayCompositor running in the system. |
| 30 virtual cc::mojom::DisplayCompositor* GetDisplayCompositor() = 0; | 30 virtual cc::mojom::DisplayCompositor* GetDisplayCompositor() = 0; |
| 31 | 31 |
| 32 // Returns the root surface id that was received from DisplayCompositor. |
| 33 virtual const cc::SurfaceId& GetRootSurfaceId() const = 0; |
| 34 |
| 32 // Returns the root of the window tree to which this |window| is attached. | 35 // Returns the root of the window tree to which this |window| is attached. |
| 33 // Returns null if this window is not attached up through to a root window. | 36 // Returns null if this window is not attached up through to a root window. |
| 34 virtual ServerWindow* GetRootWindow(const ServerWindow* window) = 0; | 37 virtual ServerWindow* GetRootWindow(const ServerWindow* window) = 0; |
| 35 | 38 |
| 36 protected: | 39 protected: |
| 37 virtual ~ServerWindowDelegate() {} | 40 virtual ~ServerWindowDelegate() {} |
| 38 }; | 41 }; |
| 39 | 42 |
| 40 } // namespace ws | 43 } // namespace ws |
| 41 | 44 |
| 42 } // namespace ui | 45 } // namespace ui |
| 43 | 46 |
| 44 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ | 47 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ |
| OLD | NEW |