OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WIDGET_NATIVE_WIDGET_VIEWS_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // These functions may return NULL during Widget destruction. | 140 // These functions may return NULL during Widget destruction. |
141 internal::NativeWidgetPrivate* GetParentNativeWidget(); | 141 internal::NativeWidgetPrivate* GetParentNativeWidget(); |
142 const internal::NativeWidgetPrivate* GetParentNativeWidget() const; | 142 const internal::NativeWidgetPrivate* GetParentNativeWidget() const; |
143 | 143 |
144 internal::NativeWidgetDelegate* delegate_; | 144 internal::NativeWidgetDelegate* delegate_; |
145 | 145 |
146 internal::NativeWidgetView* view_; | 146 internal::NativeWidgetView* view_; |
147 | 147 |
148 bool active_; | 148 bool active_; |
149 | 149 |
| 150 bool maximized_; |
150 bool minimized_; | 151 bool minimized_; |
151 | 152 |
152 // Set when SetAlwaysOnTop is called, or keep_on_top is set during creation. | 153 // Set when SetAlwaysOnTop is called, or keep_on_top is set during creation. |
153 bool always_on_top_; | 154 bool always_on_top_; |
154 | 155 |
155 // The following factory is used for calls to close the NativeWidgetViews | 156 // The following factory is used for calls to close the NativeWidgetViews |
156 // instance. | 157 // instance. |
157 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_; | 158 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_; |
158 | 159 |
159 gfx::Rect restored_bounds_; | 160 gfx::Rect restored_bounds_; |
160 ui::Transform restored_transform_; | 161 ui::Transform restored_transform_; |
161 | 162 |
162 Widget* hosting_widget_; | 163 Widget* hosting_widget_; |
163 | 164 |
164 // See class documentation for Widget in widget.h for a note about ownership. | 165 // See class documentation for Widget in widget.h for a note about ownership. |
165 Widget::InitParams::Ownership ownership_; | 166 Widget::InitParams::Ownership ownership_; |
166 | 167 |
167 bool delete_native_view_; | 168 bool delete_native_view_; |
168 | 169 |
169 std::map<const char*, void*> window_properties_; | 170 std::map<const char*, void*> window_properties_; |
170 | 171 |
171 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); | 172 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); |
172 }; | 173 }; |
173 | 174 |
174 } // namespace views | 175 } // namespace views |
175 | 176 |
176 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ | 177 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
OLD | NEW |