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_OBSERVER_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_OBSERVER_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_OBSERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "components/mus/public/cpp/window.h" | 12 #include "services/ui/public/cpp/window.h" |
13 | 13 |
14 namespace mus { | 14 namespace mus { |
15 | 15 |
16 class Window; | 16 class Window; |
17 | 17 |
18 // A note on -ing and -ed suffixes: | 18 // A note on -ing and -ed suffixes: |
19 // | 19 // |
20 // -ing methods are called before changes are applied to the local window model. | 20 // -ing methods are called before changes are applied to the local window model. |
21 // -ed methods are called after changes are applied to the local window model. | 21 // -ed methods are called after changes are applied to the local window model. |
22 // | 22 // |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // The WindowManager has requested the window to close. If the observer | 100 // The WindowManager has requested the window to close. If the observer |
101 // allows the close it should destroy the window as appropriate. | 101 // allows the close it should destroy the window as appropriate. |
102 virtual void OnRequestClose(Window* window) {} | 102 virtual void OnRequestClose(Window* window) {} |
103 | 103 |
104 protected: | 104 protected: |
105 virtual ~WindowObserver() {} | 105 virtual ~WindowObserver() {} |
106 }; | 106 }; |
107 | 107 |
108 } // namespace mus | 108 } // namespace mus |
109 | 109 |
110 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_OBSERVER_H_ | 110 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_OBSERVER_H_ |
OLD | NEW |