| 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 public: | 24 public: |
| 25 virtual DisplayCompositor* GetDisplayCompositor() = 0; | 25 virtual DisplayCompositor* GetDisplayCompositor() = 0; |
| 26 | 26 |
| 27 virtual void OnScheduleWindowPaint(ServerWindow* window) = 0; | 27 virtual void OnScheduleWindowPaint(ServerWindow* window) = 0; |
| 28 | 28 |
| 29 // Returns the root of the window tree to which this |window| is attached. | 29 // Returns the root of the window tree to which this |window| is attached. |
| 30 // Returns null if this window is not attached up through to a root window. | 30 // Returns null if this window is not attached up through to a root window. |
| 31 virtual const ServerWindow* GetRootWindow( | 31 virtual const ServerWindow* GetRootWindow( |
| 32 const ServerWindow* window) const = 0; | 32 const ServerWindow* window) const = 0; |
| 33 | 33 |
| 34 // Schedules a callback to DestroySurfacesScheduledForDestruction() at the | |
| 35 // appropriate time, which may be synchronously. | |
| 36 virtual void ScheduleSurfaceDestruction(ServerWindow* window) = 0; | |
| 37 | |
| 38 protected: | 34 protected: |
| 39 virtual ~ServerWindowDelegate() {} | 35 virtual ~ServerWindowDelegate() {} |
| 40 }; | 36 }; |
| 41 | 37 |
| 42 } // namespace ws | 38 } // namespace ws |
| 43 | 39 |
| 44 } // namespace ui | 40 } // namespace ui |
| 45 | 41 |
| 46 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ | 42 #endif // SERVICES_UI_WS_SERVER_WINDOW_DELEGATE_H_ |
| OLD | NEW |