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

Issue 1953753002: Turn RootWindowController Menus Async (Closed)

Created:
4 years, 7 months ago by jonross
Modified:
4 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, kalyank, sadrul, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Turn RootWindowController Menus Async Update RootWindowController to launch its context menus as async. This encompasses the chromium os desktop background, along with the shelf. Update Widget's mouse pressed logic to account for asynchronous menus. It was performing mouse capture under the assumption that all menus were nested. TEST=manual testing on device, ran ash_unittests, ran under an ASAN build BUG=557130 Committed: https://crrev.com/a90d898367ba991d82dfeeb666ee2cda8ab908b0 Cr-Commit-Position: refs/heads/master@{#393867}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Testing #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : Rebase #

Patch Set 5 : Central Capture Tracking #

Patch Set 6 : Mac #

Patch Set 7 : #

Patch Set 8 : Update Mus Window Destruction #

Patch Set 9 : #

Total comments: 2

Patch Set 10 : Rebase #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -27 lines) Patch
M ash/root_window_controller.h View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -0 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +22 lines, -14 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M ui/aura/client/default_capture_client.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_runner_unittest.cc View 1 2 3 4 2 chunks +68 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_private.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 1 chunk +13 lines, -9 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 3 chunks +104 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
jonross
Hi, Could you review this change? I switch RootWindowController menus to async, and I made ...
4 years, 7 months ago (2016-05-05 15:53:00 UTC) #1
jonross
Hi, Could you review this change? I switch RootWindowController menus to async, and I made ...
4 years, 7 months ago (2016-05-05 15:53:20 UTC) #3
jonross
Hi, Could you review this change? I switch RootWindowController menus to async, and I made ...
4 years, 7 months ago (2016-05-05 15:53:23 UTC) #4
sky
This is subtle that it's worth tests in views as well. https://codereview.chromium.org/1953753002/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): ...
4 years, 7 months ago (2016-05-05 16:34:39 UTC) #5
jonross
https://codereview.chromium.org/1953753002/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/1953753002/diff/1/ui/views/widget/widget.cc#newcode1192 ui/views/widget/widget.cc:1192: !MenuController::GetActiveInstance()) { On 2016/05/05 16:34:39, sky wrote: > I ...
4 years, 7 months ago (2016-05-05 17:50:42 UTC) #6
sky
I agree, we don't want Widget to depend on aura::client. Adding a function NativeWidget to ...
4 years, 7 months ago (2016-05-05 20:54:35 UTC) #7
jonross
Widget updated to look for capture changes instead of verifying the MenuController. Added a bunch ...
4 years, 7 months ago (2016-05-06 17:40:52 UTC) #8
sky
LGTM https://codereview.chromium.org/1953753002/diff/20001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/1953753002/diff/20001/ui/views/widget/widget.cc#newcode1180 ui/views/widget/widget.cc:1180: // It is possible for a View to ...
4 years, 7 months ago (2016-05-06 20:03:32 UTC) #9
jonross
https://codereview.chromium.org/1953753002/diff/20001/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/1953753002/diff/20001/ui/views/widget/widget.cc#newcode1180 ui/views/widget/widget.cc:1180: // It is possible for a View to show ...
4 years, 7 months ago (2016-05-09 16:50:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953753002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953753002/40001
4 years, 7 months ago (2016-05-09 16:50:41 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/225598)
4 years, 7 months ago (2016-05-09 18:21:42 UTC) #15
jonross
Hi sky, Could you take another look at this change? Running the trybots uncovered some ...
4 years, 7 months ago (2016-05-14 16:59:57 UTC) #19
sky
LGTM https://codereview.chromium.org/1953753002/diff/160001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/1953753002/diff/160001/ash/root_window_controller.cc#newcode689 ash/root_window_controller.cc:689: menu_model_(nullptr), nit: you don't need any of these ...
4 years, 7 months ago (2016-05-16 15:44:41 UTC) #20
jonross
https://codereview.chromium.org/1953753002/diff/160001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/1953753002/diff/160001/ash/root_window_controller.cc#newcode689 ash/root_window_controller.cc:689: menu_model_(nullptr), On 2016/05/16 15:44:41, sky wrote: > nit: you ...
4 years, 7 months ago (2016-05-16 16:53:49 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1953753002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1953753002/200001
4 years, 7 months ago (2016-05-16 16:54:23 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 7 months ago (2016-05-16 18:14:39 UTC) #25
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 18:15:47 UTC) #27
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/a90d898367ba991d82dfeeb666ee2cda8ab908b0
Cr-Commit-Position: refs/heads/master@{#393867}

Powered by Google App Engine
This is Rietveld 408576698