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

Unified Diff: ash/mus/root_windows_observer.h

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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 | « ash/mus/root_window_controller.cc ('k') | ash/mus/test/wm_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/root_windows_observer.h
diff --git a/ash/mus/root_windows_observer.h b/ash/mus/root_windows_observer.h
index 9df111159a945cce0b7168a63f72982469352be6..9ef27e5c833922289f88f70e453f2e48f3b49f8e 100644
--- a/ash/mus/root_windows_observer.h
+++ b/ash/mus/root_windows_observer.h
@@ -13,8 +13,11 @@ class RootWindowController;
class RootWindowsObserver {
public:
// Called once a new display has been created and the root Window obtained.
- virtual void OnRootWindowControllerAdded(
- RootWindowController* controller) = 0;
+ virtual void OnRootWindowControllerAdded(RootWindowController* controller) {}
+
+ // Called before a RootWindowController is destroyed.
+ virtual void OnWillDestroyRootWindowController(
+ RootWindowController* controller) {}
protected:
~RootWindowsObserver() {}
« no previous file with comments | « ash/mus/root_window_controller.cc ('k') | ash/mus/test/wm_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698