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

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

Issue 11758002: Desktop aura: Expand what the ViewsDelegate can do to new windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't clobber native_widget Created 7 years, 11 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/views_delegate.h ('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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // specified, it's in screen's global coordinate system. 180 // specified, it's in screen's global coordinate system.
181 gfx::Rect bounds; 181 gfx::Rect bounds;
182 // When set, this value is used as the Widget's NativeWidget implementation. 182 // When set, this value is used as the Widget's NativeWidget implementation.
183 // The Widget will not construct a default one. Default is NULL. 183 // The Widget will not construct a default one. Default is NULL.
184 NativeWidget* native_widget; 184 NativeWidget* native_widget;
185 // Aura-only. Provides a DesktopRootWindowHost implementation to use instead 185 // Aura-only. Provides a DesktopRootWindowHost implementation to use instead
186 // of the default one. 186 // of the default one.
187 // TODO(beng): Figure out if there's a better way to expose this, e.g. get 187 // TODO(beng): Figure out if there's a better way to expose this, e.g. get
188 // rid of NW subclasses and do this all via message handling. 188 // rid of NW subclasses and do this all via message handling.
189 DesktopRootWindowHost* desktop_root_window_host; 189 DesktopRootWindowHost* desktop_root_window_host;
190 // Whether this window is intended to be a toplevel window with no
191 // attachment to any other window. (This may be a transient window is
192 // |parent| is set.)
190 bool top_level; 193 bool top_level;
191 // Only used by NativeWidgetAura. Specifies the type of layer for the 194 // Only used by NativeWidgetAura. Specifies the type of layer for the
192 // aura::Window. Default is LAYER_TEXTURED. 195 // aura::Window. Default is LAYER_TEXTURED.
193 ui::LayerType layer_type; 196 ui::LayerType layer_type;
194 // Only used by Aura. Provides a context window whose RootWindow is 197 // Only used by Aura. Provides a context window whose RootWindow is
195 // consulted during widget creation to determine where in the Window 198 // consulted during widget creation to determine where in the Window
196 // hierarchy this widget should be placed. (This is separate from |parent|; 199 // hierarchy this widget should be placed. (This is separate from |parent|;
197 // if you pass a RootWindow to |parent|, your window will be parented to 200 // if you pass a RootWindow to |parent|, your window will be parented to
198 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow 201 // |parent|. If you pass a RootWindow to |context|, we ask that RootWindow
199 // where it wants your window placed.) NULL is not allowed if you are using 202 // where it wants your window placed.) NULL is not allowed if you are using
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 827
825 // Is |root_layers_| out of date? 828 // Is |root_layers_| out of date?
826 bool root_layers_dirty_; 829 bool root_layers_dirty_;
827 830
828 DISALLOW_COPY_AND_ASSIGN(Widget); 831 DISALLOW_COPY_AND_ASSIGN(Widget);
829 }; 832 };
830 833
831 } // namespace views 834 } // namespace views
832 835
833 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 836 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/views_delegate.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698