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

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

Issue 282133005: Removes unnecessary views::Widget::InitParams::top_level (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « ui/views/widget/native_widget_unittest.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // specified, it's in screen's global coordinate system. 228 // specified, it's in screen's global coordinate system.
229 gfx::Rect bounds; 229 gfx::Rect bounds;
230 // When set, this value is used as the Widget's NativeWidget implementation. 230 // When set, this value is used as the Widget's NativeWidget implementation.
231 // The Widget will not construct a default one. Default is NULL. 231 // The Widget will not construct a default one. Default is NULL.
232 NativeWidget* native_widget; 232 NativeWidget* native_widget;
233 // Aura-only. Provides a DesktopWindowTreeHost implementation to use instead 233 // Aura-only. Provides a DesktopWindowTreeHost implementation to use instead
234 // of the default one. 234 // of the default one.
235 // TODO(beng): Figure out if there's a better way to expose this, e.g. get 235 // TODO(beng): Figure out if there's a better way to expose this, e.g. get
236 // rid of NW subclasses and do this all via message handling. 236 // rid of NW subclasses and do this all via message handling.
237 DesktopWindowTreeHost* desktop_window_tree_host; 237 DesktopWindowTreeHost* desktop_window_tree_host;
238 // Whether this window is intended to be a toplevel window with no
239 // attachment to any other window. (This may be a transient window if
240 // |parent| is set.)
241 bool top_level;
242 // Only used by NativeWidgetAura. Specifies the type of layer for the 238 // Only used by NativeWidgetAura. Specifies the type of layer for the
243 // aura::Window. Default is WINDOW_LAYER_TEXTURED. 239 // aura::Window. Default is WINDOW_LAYER_TEXTURED.
244 aura::WindowLayerType layer_type; 240 aura::WindowLayerType layer_type;
245 // Only used by Aura. Provides a context window whose RootWindow is 241 // Only used by Aura. Provides a context window whose RootWindow is
246 // consulted during widget creation to determine where in the Window 242 // consulted during widget creation to determine where in the Window
247 // hierarchy this widget should be placed. (This is separate from |parent|; 243 // hierarchy this widget should be placed. (This is separate from |parent|;
248 // if you pass a RootWindow to |parent|, your window will be parented to 244 // if you pass a RootWindow to |parent|, your window will be parented to
249 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow 245 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow
250 // where it wants your window placed.) NULL is not allowed if you are using 246 // where it wants your window placed.) NULL is not allowed if you are using
251 // aura. 247 // aura.
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 bool movement_disabled_; 932 bool movement_disabled_;
937 933
938 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 934 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
939 935
940 DISALLOW_COPY_AND_ASSIGN(Widget); 936 DISALLOW_COPY_AND_ASSIGN(Widget);
941 }; 937 };
942 938
943 } // namespace views 939 } // namespace views
944 940
945 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 941 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_unittest.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698