OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_WINDOW_WINDOW_H_ | 5 #ifndef VIEWS_WINDOW_WINDOW_H_ |
6 #define VIEWS_WINDOW_WINDOW_H_ | 6 #define VIEWS_WINDOW_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "gfx/native_widget_types.h" | 9 #include "gfx/native_widget_types.h" |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 virtual void PopForceHidden() = 0; | 86 virtual void PopForceHidden() = 0; |
87 | 87 |
88 // Prevents the window from being rendered as deactivated the next time it is. | 88 // Prevents the window from being rendered as deactivated the next time it is. |
89 // This state is reset automatically as soon as the window becomes activated | 89 // This state is reset automatically as soon as the window becomes activated |
90 // again. There is no ability to control the state through this API as this | 90 // again. There is no ability to control the state through this API as this |
91 // leads to sync problems. | 91 // leads to sync problems. |
92 // For Gtk use WidgetGtk::make_transient_to_parent. | 92 // For Gtk use WidgetGtk::make_transient_to_parent. |
93 virtual void DisableInactiveRendering() = 0; | 93 virtual void DisableInactiveRendering() = 0; |
94 #endif | 94 #endif |
95 | 95 |
96 // Activate the window, assuming it already exists and is visible. | 96 // Activates the window, assuming it already exists and is visible. |
97 virtual void Activate() = 0; | 97 virtual void Activate() = 0; |
98 | 98 |
| 99 // Deactivates the window, making the next window in the Z order the active |
| 100 // window. |
| 101 virtual void Deactivate() = 0; |
| 102 |
99 // Closes the window, ultimately destroying it. This isn't immediate (it | 103 // Closes the window, ultimately destroying it. This isn't immediate (it |
100 // occurs after a return to the message loop. Implementors must also make sure | 104 // occurs after a return to the message loop. Implementors must also make sure |
101 // that invoking Close multiple times doesn't cause bad things to happen, | 105 // that invoking Close multiple times doesn't cause bad things to happen, |
102 // since it can happen. | 106 // since it can happen. |
103 virtual void Close() = 0; | 107 virtual void Close() = 0; |
104 | 108 |
105 // Maximizes/minimizes/restores the window. | 109 // Maximizes/minimizes/restores the window. |
106 virtual void Maximize() = 0; | 110 virtual void Maximize() = 0; |
107 virtual void Minimize() = 0; | 111 virtual void Minimize() = 0; |
108 virtual void Restore() = 0; | 112 virtual void Restore() = 0; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Whether we should be using a native frame. | 168 // Whether we should be using a native frame. |
165 virtual bool ShouldUseNativeFrame() const = 0; | 169 virtual bool ShouldUseNativeFrame() const = 0; |
166 | 170 |
167 // Tell the window that something caused the frame type to change. | 171 // Tell the window that something caused the frame type to change. |
168 virtual void FrameTypeChanged() = 0; | 172 virtual void FrameTypeChanged() = 0; |
169 }; | 173 }; |
170 | 174 |
171 } // namespace views | 175 } // namespace views |
172 | 176 |
173 #endif // #ifndef VIEWS_WINDOW_WINDOW_H_ | 177 #endif // #ifndef VIEWS_WINDOW_WINDOW_H_ |
OLD | NEW |