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

Unified Diff: ui/views/widget/widget.h

Issue 588113002: Change Widget::GetAllOwnedWidgets to return child widgets as well (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aid_resilient_to_uninstall_and_profile_changes
Patch Set: Merged GetAllChildWidgets and GetAllOwnedWidgets Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 08ab9398eb591245cc288d4a01998f31e11344c9..376a2175878052dc270efdec05f9a80ccf51ed51 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -313,14 +313,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// or NULL if there is no toplevel in a native view hierarchy.
static Widget* GetTopLevelWidgetForNativeView(gfx::NativeView native_view);
- // Returns all Widgets in |native_view|'s hierarchy, including itself if
- // it is one.
- static void GetAllChildWidgets(gfx::NativeView native_view,
- Widgets* children);
-
- // Returns all non-child Widgets owned by |native_view|.
- static void GetAllOwnedWidgets(gfx::NativeView native_view,
- Widgets* owned);
+ // Returns all owned and child Widgets in |native_view|'s hierarchy, including
+ // itself if it is one.
+ static void GetAllChildAndOwnedWidgets(gfx::NativeView native_view,
+ Widgets* widgets);
// Re-parent a NativeView and notify all Widgets in |native_view|'s hierarchy
// of the change.

Powered by Google App Engine
This is Rietveld 408576698