| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_MUS_ROOT_WINDOW_OBSERVERS_H_ | 5 #ifndef ASH_MUS_WINDOW_OBSERVER_H_ |
| 6 #define ASH_MUS_ROOT_WINDOW_OBSERVERS_H_ | 6 #define ASH_MUS_WINDOW_OBSERVER_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 namespace ui { |
| 11 class Event; |
| 12 } |
| 7 | 13 |
| 8 namespace ash { | 14 namespace ash { |
| 9 namespace mus { | 15 namespace mus { |
| 10 | 16 |
| 11 class RootWindowController; | 17 class RootWindowController; |
| 12 | 18 |
| 13 class RootWindowsObserver { | 19 class WindowManagerObserver { |
| 14 public: | 20 public: |
| 15 // Called once a new display has been created and the root Window obtained. | 21 // Called when the WindowTreeClient associated with the WindowManager is |
| 22 // about to be destroyed. |
| 23 virtual void OnWindowTreeClientDestroyed() {} |
| 24 |
| 25 virtual void OnAccelerator(uint32_t id, const ui::Event& event) {} |
| 26 |
| 16 virtual void OnRootWindowControllerAdded(RootWindowController* controller) {} | 27 virtual void OnRootWindowControllerAdded(RootWindowController* controller) {} |
| 17 | |
| 18 // Called before a RootWindowController is destroyed. | |
| 19 virtual void OnWillDestroyRootWindowController( | 28 virtual void OnWillDestroyRootWindowController( |
| 20 RootWindowController* controller) {} | 29 RootWindowController* controller) {} |
| 21 | 30 |
| 22 protected: | 31 protected: |
| 23 ~RootWindowsObserver() {} | 32 virtual ~WindowManagerObserver() {} |
| 24 }; | 33 }; |
| 25 | 34 |
| 26 } // namespace mus | 35 } // namespace mus |
| 27 } // namespace ash | 36 } // namespace ash |
| 28 | 37 |
| 29 #endif // ASH_MUS_ROOT_WINDOW_OBSERVERS_H_ | 38 #endif // ASH_MUS_WINDOW_OBSERVER_H_ |
| OLD | NEW |