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

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

Issue 11421006: Desktop aura: Break aura::Window::SetParent in two. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ash_unittests Created 8 years 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_aura.cc ('k') | no next file » | 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool top_level; 190 bool top_level;
191 // Only used by NativeWidgetAura. Specifies the type of layer for the 191 // Only used by NativeWidgetAura. Specifies the type of layer for the
192 // aura::Window. Default is LAYER_TEXTURED. 192 // aura::Window. Default is LAYER_TEXTURED.
193 ui::LayerType layer_type; 193 ui::LayerType layer_type;
194 // Only used by Aura. Provides additional context (generally a RootWindow) 194 // Only used by Aura. Provides additional context (generally a RootWindow)
195 // during creation to allow the widget to determine which desktop type it 195 // during creation to allow the widget to determine which desktop type it
196 // will belong to. NULL indicates a normal native desktop. 196 // will belong to. NULL is not allowed if you are using aura.
197 gfx::NativeView context; 197 gfx::NativeView context;
198 }; 198 };
199 199
200 Widget(); 200 Widget();
201 virtual ~Widget(); 201 virtual ~Widget();
202 202
203 // Creates a decorated window Widget with the specified properties. 203 // Creates a decorated window Widget with the specified properties.
204 static Widget* CreateWindow(WidgetDelegate* delegate); 204 static Widget* CreateWindow(WidgetDelegate* delegate);
205 static Widget* CreateWindowWithParent(WidgetDelegate* delegate, 205 static Widget* CreateWindowWithParent(WidgetDelegate* delegate,
206 gfx::NativeWindow parent); 206 gfx::NativeWindow parent);
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 811
812 // Is |root_layers_| out of date? 812 // Is |root_layers_| out of date?
813 bool root_layers_dirty_; 813 bool root_layers_dirty_;
814 814
815 DISALLOW_COPY_AND_ASSIGN(Widget); 815 DISALLOW_COPY_AND_ASSIGN(Widget);
816 }; 816 };
817 817
818 } // namespace views 818 } // namespace views
819 819
820 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 820 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698