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

Side by Side 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: Update NativeViewAccessibilityWin 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 unified diff | Download patch
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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // TYPE_PANEL, TYPE_WINDOW_FRAMELESS, POPUP or MENU and has its own 311 // TYPE_PANEL, TYPE_WINDOW_FRAMELESS, POPUP or MENU and has its own
312 // focus manager. This may be itself if the |native_view| is top level, 312 // focus manager. This may be itself if the |native_view| is top level,
313 // or NULL if there is no toplevel in a native view hierarchy. 313 // or NULL if there is no toplevel in a native view hierarchy.
314 static Widget* GetTopLevelWidgetForNativeView(gfx::NativeView native_view); 314 static Widget* GetTopLevelWidgetForNativeView(gfx::NativeView native_view);
315 315
316 // Returns all Widgets in |native_view|'s hierarchy, including itself if 316 // Returns all Widgets in |native_view|'s hierarchy, including itself if
317 // it is one. 317 // it is one.
318 static void GetAllChildWidgets(gfx::NativeView native_view, 318 static void GetAllChildWidgets(gfx::NativeView native_view,
319 Widgets* children); 319 Widgets* children);
320 320
321 // Returns all non-child Widgets owned by |native_view|. 321 // Returns all Widgets owned by |native_view|.
tapted 2014/10/20 04:40:05 The distinction that GetAllOwnedWidgets isn't retu
sashab 2014/10/20 05:15:34 Done.
322 static void GetAllOwnedWidgets(gfx::NativeView native_view, 322 static void GetAllOwnedWidgets(gfx::NativeView native_view,
323 Widgets* owned); 323 Widgets* owned);
324 324
325 // Re-parent a NativeView and notify all Widgets in |native_view|'s hierarchy 325 // Re-parent a NativeView and notify all Widgets in |native_view|'s hierarchy
326 // of the change. 326 // of the change.
327 static void ReparentNativeView(gfx::NativeView native_view, 327 static void ReparentNativeView(gfx::NativeView native_view,
328 gfx::NativeView new_parent); 328 gfx::NativeView new_parent);
329 329
330 // Returns the preferred size of the contents view of this window based on 330 // Returns the preferred size of the contents view of this window based on
331 // its localized size data. The width in cols is held in a localized string 331 // its localized size data. The width in cols is held in a localized string
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 bool movement_disabled_; 945 bool movement_disabled_;
946 946
947 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 947 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
948 948
949 DISALLOW_COPY_AND_ASSIGN(Widget); 949 DISALLOW_COPY_AND_ASSIGN(Widget);
950 }; 950 };
951 951
952 } // namespace views 952 } // namespace views
953 953
954 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 954 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698