| 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 COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_OBSERVER_H_ | |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_OBSERVER_H_ | |
| 7 | |
| 8 namespace mus { | |
| 9 | |
| 10 class Window; | |
| 11 class WindowTreeConnection; | |
| 12 | |
| 13 class WindowTreeConnectionObserver { | |
| 14 public: | |
| 15 virtual void OnWindowTreeFocusChanged(Window* gained_focus, | |
| 16 Window* lost_focus) {} | |
| 17 | |
| 18 // Called right before the connection is destroyed. | |
| 19 virtual void OnWillDestroyConnection(WindowTreeConnection* connection) {} | |
| 20 | |
| 21 protected: | |
| 22 virtual ~WindowTreeConnectionObserver() {} | |
| 23 }; | |
| 24 | |
| 25 } // namespace mus | |
| 26 | |
| 27 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_OBSERVER_H_ | |
| OLD | NEW |