| 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_WINDOW_OBSERVER_H_ | 5 #ifndef ASH_MUS_WINDOW_OBSERVER_H_ |
| 6 #define ASH_MUS_WINDOW_OBSERVER_H_ | 6 #define ASH_MUS_WINDOW_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | |
| 9 | |
| 10 namespace ui { | |
| 11 class Event; | |
| 12 } | |
| 13 | |
| 14 namespace ash { | 8 namespace ash { |
| 15 namespace mus { | 9 namespace mus { |
| 16 | 10 |
| 17 class RootWindowController; | 11 class RootWindowController; |
| 18 | 12 |
| 19 class WindowManagerObserver { | 13 class WindowManagerObserver { |
| 20 public: | 14 public: |
| 21 // Called when the WindowTreeClient associated with the WindowManager is | 15 // Called when the WindowTreeClient associated with the WindowManager is |
| 22 // about to be destroyed. | 16 // about to be destroyed. |
| 23 virtual void OnWindowTreeClientDestroyed() {} | 17 virtual void OnWindowTreeClientDestroyed() {} |
| 24 | 18 |
| 25 virtual void OnAccelerator(uint32_t id, const ui::Event& event) {} | |
| 26 | |
| 27 virtual void OnRootWindowControllerAdded(RootWindowController* controller) {} | 19 virtual void OnRootWindowControllerAdded(RootWindowController* controller) {} |
| 28 virtual void OnWillDestroyRootWindowController( | 20 virtual void OnWillDestroyRootWindowController( |
| 29 RootWindowController* controller) {} | 21 RootWindowController* controller) {} |
| 30 | 22 |
| 31 protected: | 23 protected: |
| 32 virtual ~WindowManagerObserver() {} | 24 virtual ~WindowManagerObserver() {} |
| 33 }; | 25 }; |
| 34 | 26 |
| 35 } // namespace mus | 27 } // namespace mus |
| 36 } // namespace ash | 28 } // namespace ash |
| 37 | 29 |
| 38 #endif // ASH_MUS_WINDOW_OBSERVER_H_ | 30 #endif // ASH_MUS_WINDOW_OBSERVER_H_ |
| OLD | NEW |