Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: services/ui/ws/server_window.h

Issue 2400723003: Mus+Ash: Use standard cc mechanism for surface lifetime. (Closed)
Patch Set: Only AddObserver once Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/platform_display_delegate.h ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window.h
diff --git a/services/ui/ws/server_window.h b/services/ui/ws/server_window.h
index 89109599669c5b9afea106a45626ba23695ad291..d6266bb42f443391db31c950e5f3611a5599782f 100644
--- a/services/ui/ws/server_window.h
+++ b/services/ui/ws/server_window.h
@@ -56,6 +56,7 @@ class ServerWindow {
void AddObserver(ServerWindowObserver* observer);
void RemoveObserver(ServerWindowObserver* observer);
+ bool HasObserver(ServerWindowObserver* observer);
// Creates a new surface of the specified type, replacing the existing.
void CreateSurface(mojom::SurfaceType surface_type,
@@ -161,9 +162,6 @@ class ServerWindow {
// visible.
bool IsDrawn() const;
- // Called when its appropriate to destroy surfaces scheduled for destruction.
- void DestroySurfacesScheduledForDestruction();
-
const gfx::Insets& extended_hit_test_region() const {
return extended_hit_test_region_;
}
« no previous file with comments | « services/ui/ws/platform_display_delegate.h ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698