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

Unified Diff: ash/mus/window_manager_observer.h

Issue 2105653003: Fixes shutdown race in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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/window_manager_application.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager_observer.h
diff --git a/ash/mus/root_windows_observer.h b/ash/mus/window_manager_observer.h
similarity index 51%
rename from ash/mus/root_windows_observer.h
rename to ash/mus/window_manager_observer.h
index 9ef27e5c833922289f88f70e453f2e48f3b49f8e..0fa0982aaaad77ada6cecd37737cb3c08a088f1e 100644
--- a/ash/mus/root_windows_observer.h
+++ b/ash/mus/window_manager_observer.h
@@ -2,28 +2,37 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_MUS_ROOT_WINDOW_OBSERVERS_H_
-#define ASH_MUS_ROOT_WINDOW_OBSERVERS_H_
+#ifndef ASH_MUS_WINDOW_OBSERVER_H_
+#define ASH_MUS_WINDOW_OBSERVER_H_
+
+#include <stdint.h>
+
+namespace ui {
+class Event;
+}
namespace ash {
namespace mus {
class RootWindowController;
-class RootWindowsObserver {
+class WindowManagerObserver {
public:
- // Called once a new display has been created and the root Window obtained.
- virtual void OnRootWindowControllerAdded(RootWindowController* controller) {}
+ // Called when the WindowTreeClient associated with the WindowManager is
+ // about to be destroyed.
+ virtual void OnWindowTreeClientDestroyed() {}
- // Called before a RootWindowController is destroyed.
+ virtual void OnAccelerator(uint32_t id, const ui::Event& event) {}
+
+ virtual void OnRootWindowControllerAdded(RootWindowController* controller) {}
virtual void OnWillDestroyRootWindowController(
RootWindowController* controller) {}
protected:
- ~RootWindowsObserver() {}
+ virtual ~WindowManagerObserver() {}
};
} // namespace mus
} // namespace ash
-#endif // ASH_MUS_ROOT_WINDOW_OBSERVERS_H_
+#endif // ASH_MUS_WINDOW_OBSERVER_H_
« no previous file with comments | « ash/mus/window_manager_application.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698