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

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

Issue 2645253002: DesktopAura: Track windows "owned" via the DesktopWindowTreeHost (Closed)
Patch Set: Add context, comment Created 3 years, 10 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
« no previous file with comments | « ui/views/widget/native_widget_private.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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // TYPE_PANEL, TYPE_WINDOW_FRAMELESS, POPUP or MENU and has its own 345 // TYPE_PANEL, TYPE_WINDOW_FRAMELESS, POPUP or MENU and has its own
346 // focus manager. This may be itself if the |native_view| is top level, 346 // focus manager. This may be itself if the |native_view| is top level,
347 // or NULL if there is no toplevel in a native view hierarchy. 347 // or NULL if there is no toplevel in a native view hierarchy.
348 static Widget* GetTopLevelWidgetForNativeView(gfx::NativeView native_view); 348 static Widget* GetTopLevelWidgetForNativeView(gfx::NativeView native_view);
349 349
350 // Returns all Widgets in |native_view|'s hierarchy, including itself if 350 // Returns all Widgets in |native_view|'s hierarchy, including itself if
351 // it is one. 351 // it is one.
352 static void GetAllChildWidgets(gfx::NativeView native_view, 352 static void GetAllChildWidgets(gfx::NativeView native_view,
353 Widgets* children); 353 Widgets* children);
354 354
355 // Returns all Widgets owned by |native_view| (including child widgets, but 355 // Returns all Widgets owned by |native_view| (including child Widgets, but
356 // not including itself). 356 // not including itself). A Widget is considered "owned" if it is destroyed
357 // automatically when the owner is destroyed. If |include_toplevel| is set,
358 // toplevel Widgets (i.e. those with an OS-level handle) are included.
357 static void GetAllOwnedWidgets(gfx::NativeView native_view, 359 static void GetAllOwnedWidgets(gfx::NativeView native_view,
358 Widgets* owned); 360 Widgets* owned,
361 bool include_toplevel);
359 362
360 // Re-parent a NativeView and notify all Widgets in |native_view|'s hierarchy 363 // Re-parent a NativeView and notify all Widgets in |native_view|'s hierarchy
361 // of the change. 364 // of the change.
362 static void ReparentNativeView(gfx::NativeView native_view, 365 static void ReparentNativeView(gfx::NativeView native_view,
363 gfx::NativeView new_parent); 366 gfx::NativeView new_parent);
364 367
365 // Returns the preferred size of the contents view of this window based on 368 // Returns the preferred size of the contents view of this window based on
366 // its localized size data. The width in cols is held in a localized string 369 // its localized size data. The width in cols is held in a localized string
367 // resource identified by |col_resource_id|, the height in the same fashion. 370 // resource identified by |col_resource_id|, the height in the same fashion.
368 // TODO(beng): This should eventually live somewhere else, probably closer to 371 // TODO(beng): This should eventually live somewhere else, probably closer to
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 bool movement_disabled_; 981 bool movement_disabled_;
979 982
980 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 983 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
981 984
982 DISALLOW_COPY_AND_ASSIGN(Widget); 985 DISALLOW_COPY_AND_ASSIGN(Widget);
983 }; 986 };
984 987
985 } // namespace views 988 } // namespace views
986 989
987 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 990 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_private.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698