Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: views/widget/native_widget_views.h

Issue 7925006: NativeWidgetViews: Implement Maximize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | views/widget/native_widget_views.cc » ('j') | views/widget/native_widget_views.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "ui/base/ui_base_types.h"
12 #include "ui/gfx/transform.h" 13 #include "ui/gfx/transform.h"
13 #include "views/widget/native_widget_private.h" 14 #include "views/widget/native_widget_private.h"
14 #include "views/widget/widget.h" 15 #include "views/widget/widget.h"
15 16
16 namespace views { 17 namespace views {
17 namespace desktop { 18 namespace desktop {
18 class DesktopWindowView; 19 class DesktopWindowView;
19 } 20 }
20 21
21 namespace internal { 22 namespace internal {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const internal::NativeWidgetPrivate* GetParentNativeWidget() const; 149 const internal::NativeWidgetPrivate* GetParentNativeWidget() const;
149 150
150 bool HandleWindowOperation(const MouseEvent& event); 151 bool HandleWindowOperation(const MouseEvent& event);
151 152
152 internal::NativeWidgetDelegate* delegate_; 153 internal::NativeWidgetDelegate* delegate_;
153 154
154 internal::NativeWidgetView* view_; 155 internal::NativeWidgetView* view_;
155 156
156 bool active_; 157 bool active_;
157 158
158 bool minimized_; 159 ui::WindowShowState window_state_;
159 160
160 // Set when SetAlwaysOnTop is called, or keep_on_top is set during creation. 161 // Set when SetAlwaysOnTop is called, or keep_on_top is set during creation.
161 bool always_on_top_; 162 bool always_on_top_;
162 163
163 // The following factory is used for calls to close the NativeWidgetViews 164 // The following factory is used for calls to close the NativeWidgetViews
164 // instance. 165 // instance.
165 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_; 166 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_;
166 167
167 gfx::Rect restored_bounds_; 168 gfx::Rect restored_bounds_;
168 ui::Transform restored_transform_; 169 ui::Transform restored_transform_;
169 170
170 // See class documentation for Widget in widget.h for a note about ownership. 171 // See class documentation for Widget in widget.h for a note about ownership.
171 Widget::InitParams::Ownership ownership_; 172 Widget::InitParams::Ownership ownership_;
172 173
173 bool delete_native_view_; 174 bool delete_native_view_;
174 175
175 std::map<const char*, void*> window_properties_; 176 std::map<const char*, void*> window_properties_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); 178 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews);
178 }; 179 };
179 180
180 } // namespace views 181 } // namespace views
181 182
182 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ 183 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | views/widget/native_widget_views.cc » ('j') | views/widget/native_widget_views.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698