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

Issue 588113002: Change Widget::GetAllOwnedWidgets to return child widgets as well (Closed)

Created:
6 years, 3 months ago by sashab
Modified:
6 years, 2 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@aid_resilient_to_uninstall_and_profile_changes
Project:
chromium
Visibility:
Public.

Description

Change Widget::GetAllOwnedWidgets to return child widgets as well Whether or not Windows Aero is enabled on Windows platforms changes whether a dialog is owned as a transient child or a child widget, and this distinction is not useful. Changed Widget::GetAllOwnedWidgets to return child widgets as well so widgets like dialogs can be detected in tests and at runtime, without special checks for whether Aero is currently enabled. This also fixes the test AppListControllerAppInfoDialogBrowserTest. BUG=378251 Committed: https://crrev.com/20f85cd78d717d58547ba3e8a42ada14108b950e Cr-Commit-Position: refs/heads/master@{#301055}

Patch Set 1 #

Patch Set 2 : Made GetAllOwnedWidgets return child windows as well #

Total comments: 6

Patch Set 3 : Review feedback #

Patch Set 4 : Update NativeViewAccessibilityWin #

Total comments: 6

Patch Set 5 : Review feedback #

Patch Set 6 : Added missing close brace #

Total comments: 3

Patch Set 7 : Merged GetAllChildWidgets and GetAllOwnedWidgets #

Total comments: 1

Patch Set 8 : Merged functions back together #

Total comments: 2

Patch Set 9 : Minor fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -12 lines) Patch
M chrome/browser/ui/app_list/app_list_service_views_browsertest.cc View 7 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility_win.cc View 1 2 3 4 7 1 chunk +1 line, -3 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -6 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (4 generated)
sashab
tapted wdyt?
6 years, 2 months ago (2014-10-15 06:29:16 UTC) #3
tapted
It looks like the only other user is NativeViewAccessibilityWin::PopulateChildWidgetVector() But that will need to be ...
6 years, 2 months ago (2014-10-15 23:59:24 UTC) #4
sashab
https://codereview.chromium.org/588113002/diff/40001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/588113002/diff/40001/ui/views/widget/native_widget_aura.cc#newcode1106 ui/views/widget/native_widget_aura.cc:1106: void NativeWidgetPrivate::GetAllOwnedWidgets(gfx::NativeView native_view, On 2014/10/15 23:59:24, tapted wrote: > ...
6 years, 2 months ago (2014-10-20 03:03:01 UTC) #5
tapted
lgtm after updating the CL description. It needs to give rationale for why this is ...
6 years, 2 months ago (2014-10-20 04:40:05 UTC) #6
sashab
https://codereview.chromium.org/588113002/diff/80001/ui/views/accessibility/native_view_accessibility_win.cc File ui/views/accessibility/native_view_accessibility_win.cc (left): https://codereview.chromium.org/588113002/diff/80001/ui/views/accessibility/native_view_accessibility_win.cc#oldcode1499 ui/views/accessibility/native_view_accessibility_win.cc:1499: if (child_widget == widget) On 2014/10/20 04:40:05, tapted (OOO ...
6 years, 2 months ago (2014-10-20 05:15:34 UTC) #7
sashab
6 years, 2 months ago (2014-10-21 21:41:57 UTC) #9
sky
https://codereview.chromium.org/588113002/diff/120001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/588113002/diff/120001/ui/views/widget/native_widget_aura.cc#newcode1111 ui/views/widget/native_widget_aura.cc:1111: for (const auto& transient_child : wm::GetTransientChildren(native_view)) { nit: IMO ...
6 years, 2 months ago (2014-10-22 00:11:35 UTC) #10
sashab
https://codereview.chromium.org/588113002/diff/120001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/588113002/diff/120001/ui/views/widget/native_widget_aura.cc#newcode1111 ui/views/widget/native_widget_aura.cc:1111: for (const auto& transient_child : wm::GetTransientChildren(native_view)) { On 2014/10/22 ...
6 years, 2 months ago (2014-10-23 00:33:30 UTC) #11
sky
https://codereview.chromium.org/588113002/diff/140001/ui/views/controls/native/native_view_host.cc File ui/views/controls/native/native_view_host.cc (right): https://codereview.chromium.org/588113002/diff/140001/ui/views/controls/native/native_view_host.cc#newcode215 ui/views/controls/native/native_view_host.cc:215: Widget::GetAllChildAndOwnedWidgets(native_view(), &widgets); GAH! Sorry, didn't realize these other windows ...
6 years, 2 months ago (2014-10-23 02:29:18 UTC) #12
sashab
6 years, 2 months ago (2014-10-23 06:33:05 UTC) #13
sky
LGTM https://codereview.chromium.org/588113002/diff/160001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/588113002/diff/160001/ui/views/widget/widget.h#newcode321 ui/views/widget/widget.h:321: // Returns all Widgets owned by |native_view|, not ...
6 years, 2 months ago (2014-10-23 16:58:31 UTC) #14
sky
And sorry for the run around.
6 years, 2 months ago (2014-10-23 16:58:38 UTC) #15
sashab
Not at all :) Just reverted one commit in my history haha. And good to ...
6 years, 2 months ago (2014-10-24 01:03:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588113002/180001
6 years, 2 months ago (2014-10-24 01:05:28 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:180001)
6 years, 2 months ago (2014-10-24 05:12:56 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 05:13:47 UTC) #20
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/20f85cd78d717d58547ba3e8a42ada14108b950e
Cr-Commit-Position: refs/heads/master@{#301055}

Powered by Google App Engine
This is Rietveld 408576698