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

Issue 2583353003: MD History: Replace last usage of cr-shared-menu with cr-action-menu. (Closed)

Created:
4 years ago by dpapad
Modified:
4 years ago
Reviewers:
tsergeant, Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-history_chromium.org, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, pam+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD History: Replace last usage of cr-shared-menu with cr-action-menu. - Remove logic to close menu when scrolling (no longer possible since cr-action-menu is a modal <dialog>). - Replace "toggle" logic with simpler "open" logic (the menu button can't be clicked when the menu is open. - Simplify tests that were testing impossible scenarios (open-menu event can't fire for a different history entry, while the menu is already open). BUG=658821 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/8630d3b2a1d2039ec3b2734bc5bebc2d91ec1407 Cr-Commit-Position: refs/heads/master@{#440308}

Patch Set 1 : nits. #

Patch Set 2 : vulcanized. #

Patch Set 3 : Fix more #

Total comments: 12

Patch Set 4 : address comments #

Patch Set 5 : Move styling in cr-action-menu. #

Patch Set 6 : Merge conflicts. #

Total comments: 2

Patch Set 7 : Nit #

Total comments: 3

Patch Set 8 : Test found real subtle bug (display flex overriding [hidden] attribute) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -562 lines) Patch
M chrome/browser/resources/md_downloads/vulcanized.html View 1 2 3 4 5 26 chunks +91 lines, -111 lines 0 comments Download
M chrome/browser/resources/md_history/app.crisper.js View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/md_history/app.vulcanized.html View 1 2 3 4 5 25 chunks +114 lines, -181 lines 0 comments Download
M chrome/browser/resources/md_history/compiled_resources2.gyp View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history_item.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/history_list.js View 1 2 3 4 5 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/resources/md_history/lazy_load.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/lazy_load.crisper.js View 1 2 3 4 5 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/browser/resources/md_history/lazy_load.vulcanized.html View 1 2 3 4 5 6 7 12 chunks +39 lines, -110 lines 0 comments Download
M chrome/browser/resources/md_history/list_container.html View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/resources/md_history/list_container.js View 1 2 3 4 5 6 6 chunks +28 lines, -13 lines 0 comments Download
M chrome/browser/resources/md_history/shared_style.html View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/resources/md_history/synced_device_card.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/synced_device_manager.html View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/resources/md_history/synced_device_manager.js View 1 2 3 4 5 4 chunks +21 lines, -21 lines 0 comments Download
M chrome/browser/resources/settings/settings_shared_css.html View 1 2 3 4 5 2 chunks +1 line, -17 lines 0 comments Download
M chrome/test/data/webui/md_history/history_list_test.js View 1 2 1 chunk +0 lines, -18 lines 0 comments Download
M chrome/test/data/webui/md_history/history_metrics_test.js View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M chrome/test/data/webui/md_history/history_overflow_menu_test.js View 1 2 1 chunk +19 lines, -48 lines 0 comments Download
M chrome/test/data/webui/md_history/history_synced_tabs_test.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html View 1 2 3 4 5 6 7 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (29 generated)
dpapad
4 years ago (2016-12-20 23:35:21 UTC) #14
tsergeant
Thanks for doing this! It deletes a bunch of code and fixes a bunch of ...
4 years ago (2016-12-21 00:39:36 UTC) #15
dpapad
I am fine with waiting for Alan to approve. Having said that, we do want ...
4 years ago (2016-12-21 01:04:49 UTC) #16
tsergeant
To be clear, I'm happy for this to land now and for any design nits ...
4 years ago (2016-12-21 02:37:34 UTC) #17
Dan Beam
https://codereview.chromium.org/2583353003/diff/70001/chrome/browser/resources/md_history/shared_style.html File chrome/browser/resources/md_history/shared_style.html (right): https://codereview.chromium.org/2583353003/diff/70001/chrome/browser/resources/md_history/shared_style.html#newcode40 chrome/browser/resources/md_history/shared_style.html:40: /* TODO(dpapad): Copied from MD Settings, find a way ...
4 years ago (2016-12-21 03:11:19 UTC) #18
dpapad
Moved styling PTAL. Also note, cr-action-menu has many advantages over previous implementations (cr-shared-menu, iron-dropdown), but ...
4 years ago (2016-12-21 03:50:18 UTC) #19
tsergeant
lgtm, hopefully having cr-action-menu launched in history will give some more weight to those bugs.
4 years ago (2016-12-21 04:22:21 UTC) #20
dpapad
On 2016/12/21 at 04:22:21, tsergeant wrote: > lgtm, hopefully having cr-action-menu launched in history will ...
4 years ago (2016-12-21 20:23:02 UTC) #25
Dan Beam
lgtm https://codereview.chromium.org/2583353003/diff/130001/chrome/browser/resources/md_history/list_container.js File chrome/browser/resources/md_history/list_container.js (right): https://codereview.chromium.org/2583353003/diff/130001/chrome/browser/resources/md_history/list_container.js#newcode30 chrome/browser/resources/md_history/list_container.js:30: * path: string, target: !HTMLElement indent off, why ...
4 years ago (2016-12-21 22:06:38 UTC) #28
dpapad
https://codereview.chromium.org/2583353003/diff/130001/chrome/browser/resources/md_history/list_container.js File chrome/browser/resources/md_history/list_container.js (right): https://codereview.chromium.org/2583353003/diff/130001/chrome/browser/resources/md_history/list_container.js#newcode30 chrome/browser/resources/md_history/list_container.js:30: * path: string, target: !HTMLElement On 2016/12/21 at 22:06:38, ...
4 years ago (2016-12-21 22:41:09 UTC) #31
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/2583353003/150001
4 years ago (2016-12-21 22:46:45 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/337438)
4 years ago (2016-12-21 23:45:27 UTC) #36
dpapad
https://codereview.chromium.org/2583353003/diff/150001/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html File ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html (right): https://codereview.chromium.org/2583353003/diff/150001/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html#newcode1 ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html:1: <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> This change causes a "Polymer is ...
4 years ago (2016-12-22 00:14:21 UTC) #37
dpapad
https://codereview.chromium.org/2583353003/diff/150001/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html File ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html (right): https://codereview.chromium.org/2583353003/diff/150001/ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html#newcode1 ui/webui/resources/cr_elements/cr_action_menu/cr_action_menu.html:1: <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> On 2016/12/22 at 00:14:21, dpapad wrote: ...
4 years ago (2016-12-22 00:46:18 UTC) #38
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/2583353003/170001
4 years ago (2016-12-22 00:47:32 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:170001)
4 years ago (2016-12-22 01:52:26 UTC) #44
commit-bot: I haz the power
4 years ago (2016-12-22 01:54:47 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8630d3b2a1d2039ec3b2734bc5bebc2d91ec1407
Cr-Commit-Position: refs/heads/master@{#440308}

Powered by Google App Engine
This is Rietveld 408576698