| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ |
| 7 | 7 |
| 8 namespace mus { | 8 namespace mus { |
| 9 | 9 |
| 10 class Window; | 10 class Window; |
| 11 class WindowTreeClient; | 11 class WindowTreeClient; |
| 12 | 12 |
| 13 class WindowTreeClientObserver { | 13 class WindowTreeClientObserver { |
| 14 public: | 14 public: |
| 15 virtual void OnWindowTreeFocusChanged(Window* gained_focus, | 15 virtual void OnWindowTreeFocusChanged(Window* gained_focus, |
| 16 Window* lost_focus) {} | 16 Window* lost_focus) {} |
| 17 | 17 |
| 18 // Called early on in the destructor of WindowTreeClient; before any windows | 18 // Called early on in the destructor of WindowTreeClient; before any windows |
| 19 // have been destroyed. | 19 // have been destroyed. |
| 20 virtual void OnWillDestroyClient(WindowTreeClient* client) {} | 20 virtual void OnWillDestroyClient(WindowTreeClient* client) {} |
| 21 | 21 |
| 22 // Called at the end of WindowTreeClient's destructor. At this point | 22 // Called at the end of WindowTreeClient's destructor. At this point |
| 23 // observers should drop all references to |client|. | 23 // observers should drop all references to |client|. |
| 24 virtual void OnDidDestroyClient(WindowTreeClient* client) {} | 24 virtual void OnDidDestroyClient(WindowTreeClient* client) {} |
| 25 | 25 |
| 26 protected: | 26 protected: |
| 27 virtual ~WindowTreeClientObserver() {} | 27 virtual ~WindowTreeClientObserver() {} |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace mus | 30 } // namespace mus |
| 31 | 31 |
| 32 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ | 32 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ |
| OLD | NEW |