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

Issue 2104013004: MD WebUI: Reimplement cr-shared-menu using iron-dropdown. (Closed)

Created:
4 years, 5 months ago by tsergeant
Modified:
4 years, 5 months ago
Reviewers:
calamity, Dan Beam
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, dbeam+watch-elements_chromium.org, jlklein+watch-closure_chromium.org, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, vitalyp+closure_chromium.org, michaelpg+watch-elements_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-closure_chromium.org, hcarmona
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD WebUI: Reimplement cr-shared-menu using iron-dropdown. This change brings the implementation much closer to that of paper-menu-button, and fixes a number of longstanding bugs. In particular, * Focus is correctly restored to the element which opened the menu after the menu is closed. * It is only necessary to press escape once to close the menu. * It is possible to close the menu by clicking anywhere else on the page. * Tab focusing is trapped inside the menu, rather than allowing tab to go to a different part of the page. * Bold text is no longer applied the menu item which was last clicked. The main trade-off of this approach is that we now have to use neon-animation to animate the menu out, and due to the way that the menu is positioned it will animate in from the top-left corner (the same as paper-menu-button). BUG=589362, 603454, 616074, 619839, 620038 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9 Cr-Commit-Position: refs/heads/master@{#405048}

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 4

Patch Set 3 : Reword comment #

Total comments: 25

Patch Set 4 : Address dbeam@ review #

Total comments: 4

Patch Set 5 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -174 lines) Patch
M chrome/test/data/webui/cr_elements/cr_elements_browsertest.js View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js View 1 2 3 4 1 chunk +122 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_history/history_overflow_menu_test.js View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_shared_menu/compiled_resources2.gyp View 1 1 chunk +1 line, -2 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.html View 1 1 chunk +17 lines, -10 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_shared_menu/cr_shared_menu.js View 1 2 3 4 chunks +117 lines, -153 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
tsergeant
+calamity for a local pass
4 years, 5 months ago (2016-06-30 04:20:06 UTC) #4
Dan Beam
/cc hcarmona@ as fyi
4 years, 5 months ago (2016-06-30 23:33:34 UTC) #7
calamity
https://codereview.chromium.org/2104013004/diff/40001/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js File chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js (right): https://codereview.chromium.org/2104013004/diff/40001/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js#newcode59 chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js:59: // opening. Does this mean this test could flake? ...
4 years, 5 months ago (2016-07-06 06:49:15 UTC) #9
tsergeant
https://codereview.chromium.org/2104013004/diff/40001/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js File chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js (right): https://codereview.chromium.org/2104013004/diff/40001/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js#newcode59 chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js:59: // opening. On 2016/07/06 06:49:15, calamity wrote: > Does ...
4 years, 5 months ago (2016-07-06 07:16:29 UTC) #10
calamity
lgtm. Separate rebase and comment fix patches in future.
4 years, 5 months ago (2016-07-07 05:57:16 UTC) #11
tsergeant
On 2016/07/07 05:57:16, calamity wrote: > lgtm. Separate rebase and comment fix patches in future. ...
4 years, 5 months ago (2016-07-07 06:28:21 UTC) #12
tsergeant
dbeam, can you please take a look?
4 years, 5 months ago (2016-07-07 06:36:27 UTC) #14
Dan Beam
i don't think bug 589326 is right (in your CL desc) in general, I guess ...
4 years, 5 months ago (2016-07-07 17:38:25 UTC) #15
tsergeant
> i don't think bug 589326 is right (in your CL desc) oops, transposed a ...
4 years, 5 months ago (2016-07-11 03:30:49 UTC) #17
Dan Beam
lgtm w/optional nits https://codereview.chromium.org/2104013004/diff/80001/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js File chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js (right): https://codereview.chromium.org/2104013004/diff/80001/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js#newcode16 chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js:16: menu.addEventListener('iron-overlay-opened', callback); nit: menu.addEventListener('iron-overlay-opened', function f() ...
4 years, 5 months ago (2016-07-12 02:11:38 UTC) #18
tsergeant
https://codereview.chromium.org/2104013004/diff/80001/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js File chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js (right): https://codereview.chromium.org/2104013004/diff/80001/chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js#newcode16 chrome/test/data/webui/cr_elements/cr_shared_menu_tests.js:16: menu.addEventListener('iron-overlay-opened', callback); On 2016/07/12 02:11:38, Dan Beam wrote: > ...
4 years, 5 months ago (2016-07-13 04:44:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2104013004/100001
4 years, 5 months ago (2016-07-13 04:45:42 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 5 months ago (2016-07-13 05:56:11 UTC) #23
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 05:56:20 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 05:57:49 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9aecdea1b2386028f8b3ad5e47fd6d98a6add2d9
Cr-Commit-Position: refs/heads/master@{#405048}

Powered by Google App Engine
This is Rietveld 408576698