Index: components/mus/ws/server_window_surface_manager.h |
diff --git a/components/mus/ws/server_window_surface_manager.h b/components/mus/ws/server_window_surface_manager.h |
index a56827f69477d006f102a405bc915de68cab2cd9..872e47790f5dbca1e5e1d9c2801cd45575e7ee55 100644 |
--- a/components/mus/ws/server_window_surface_manager.h |
+++ b/components/mus/ws/server_window_surface_manager.h |
@@ -43,13 +43,17 @@ class ServerWindowSurfaceManager { |
ServerWindowSurface* GetDefaultSurface(); |
ServerWindowSurface* GetUnderlaySurface(); |
ServerWindowSurface* GetSurfaceByType(mojom::SurfaceType type); |
- bool HasSurfaceOfType(mojom::SurfaceType type); |
+ bool HasSurfaceOfType(mojom::SurfaceType type) const; |
+ bool HasAnySurface(); |
+ |
+ uint32_t id_namespace() const { return surface_id_allocator_.id_namespace(); } |
+ cc::SurfaceManager* GetSurfaceManager(); |
private: |
friend class ServerWindowSurfaceManagerTestApi; |
friend class ServerWindowSurface; |
- // Returns true if a surface of |type| has been set and it's size is greater |
+ // Returns true if a surface of |type| has been set and its size is greater |
// than the size of the window. |
bool IsSurfaceReadyAndNonEmpty(mojom::SurfaceType type) const; |