| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DELEGATE_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/mus/public/interfaces/window_tree.mojom.h" | 10 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 11 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" | 11 #include "services/shell/public/interfaces/interface_provider.mojom.h" |
| 12 | 12 |
| 13 namespace mus { | 13 namespace mus { |
| 14 | 14 |
| 15 class Window; | 15 class Window; |
| 16 class WindowTreeConnection; | 16 class WindowTreeConnection; |
| 17 | 17 |
| 18 // Interface implemented by an application using the window manager. | 18 // Interface implemented by an application using the window manager. |
| 19 // | 19 // |
| 20 // WindowTreeConnection is deleted by any of the following: | 20 // WindowTreeConnection is deleted by any of the following: |
| 21 // . If all the roots of the connection are destroyed and the connection is | 21 // . If all the roots of the connection are destroyed and the connection is |
| (...skipping 25 matching lines...) Expand all Loading... |
| 47 // have been destroyed. |connection| is no longer valid after this call. | 47 // have been destroyed. |connection| is no longer valid after this call. |
| 48 virtual void OnConnectionLost(WindowTreeConnection* connection) = 0; | 48 virtual void OnConnectionLost(WindowTreeConnection* connection) = 0; |
| 49 | 49 |
| 50 protected: | 50 protected: |
| 51 virtual ~WindowTreeDelegate() {} | 51 virtual ~WindowTreeDelegate() {} |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace mus | 54 } // namespace mus |
| 55 | 55 |
| 56 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_ | 56 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_DELEGATE_H_ |
| OLD | NEW |