| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ | |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ | |
| 7 | |
| 8 namespace ui { | |
| 9 | |
| 10 class Window; | |
| 11 class WindowTreeClient; | |
| 12 | |
| 13 class WindowTreeClientObserver { | |
| 14 public: | |
| 15 virtual void OnWindowTreeFocusChanged(Window* gained_focus, | |
| 16 Window* lost_focus) {} | |
| 17 | |
| 18 virtual void OnWindowTreeCaptureChanged(Window* gained_capture, | |
| 19 Window* lost_capture) {} | |
| 20 | |
| 21 // Called early on in the destructor of WindowTreeClient; before any windows | |
| 22 // have been destroyed. | |
| 23 virtual void OnWillDestroyClient(WindowTreeClient* client) {} | |
| 24 | |
| 25 // Called at the end of WindowTreeClient's destructor. At this point | |
| 26 // observers should drop all references to |client|. | |
| 27 virtual void OnDidDestroyClient(WindowTreeClient* client) {} | |
| 28 | |
| 29 protected: | |
| 30 virtual ~WindowTreeClientObserver() {} | |
| 31 }; | |
| 32 | |
| 33 } // namespace ui | |
| 34 | |
| 35 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ | |
| OLD | NEW |