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

Unified Diff: ui/platform_window/platform_window.h

Issue 2741533002: Fix AshWindowTreeHost shutdown for Ozone X11. (Closed)
Patch Set: Add to other PlatformWindow implementations. Created 3 years, 9 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 | « ui/platform_window/android/platform_window_android.cc ('k') | ui/platform_window/stub/stub_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/platform_window.h
diff --git a/ui/platform_window/platform_window.h b/ui/platform_window/platform_window.h
index f22a48cd50bf21bc5243838086417a36cce51da5..bd8dbb01ef9c3dc6fbee728aea6491fa67a0e95e 100644
--- a/ui/platform_window/platform_window.h
+++ b/ui/platform_window/platform_window.h
@@ -30,6 +30,11 @@ class PlatformWindow {
virtual void Hide() = 0;
virtual void Close() = 0;
+ // Informs the window it is going to be destroyed sometime soon. This is only
+ // called for specific code paths, for example by Ash, so it shouldn't be
+ // assumed this will get called before destruction.
+ virtual void PrepareForShutdown() = 0;
+
// Sets and gets the bounds of the platform-window. Note that the bounds is in
// physical pixel coordinates.
virtual void SetBounds(const gfx::Rect& bounds) = 0;
« no previous file with comments | « ui/platform_window/android/platform_window_android.cc ('k') | ui/platform_window/stub/stub_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698