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

Issue 1170913006: Add material design toggle ripple element. (Closed)

Created:
5 years, 6 months ago by yawano
Modified:
5 years, 6 months ago
Reviewers:
fukino
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, Dan Beam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add material design toggle ripple element. Add material design toggle ripple element and use it in the gear menu button. BUG=499160 TEST=none Committed: https://crrev.com/e3a3f806542a38b0219745967a6a4bb4f9f364a7 Cr-Commit-Position: refs/heads/master@{#334565}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Rename onActivatedChanged_ to activatedChanged_. #

Patch Set 3 : Move to ui/file_manager/file_manager/foreground. #

Total comments: 2

Patch Set 4 : Remove changes to menu_button.js. #

Total comments: 6

Patch Set 5 : Rebase. #

Patch Set 6 : Use the ripple with sort and search buttons. #

Patch Set 7 : Make ripple size same with the element size. #

Total comments: 2

Patch Set 8 : Fix format. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -18 lines) Patch
A + ui/file_manager/externs/files_elements.js View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M ui/file_manager/file_manager/foreground/css/file_manager.css View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/foreground/elements/files_toggle_ripple.html View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/foreground/elements/files_toggle_ripple.js View 1 2 3 4 5 6 7 1 chunk +127 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/compiled_resources.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_manager.js View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/gear_menu_controller.js View 1 2 5 chunks +18 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/sort_menu_controller.js View 1 2 3 4 5 4 chunks +15 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js View 1 2 3 4 5 3 chunks +21 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/search_box.js View 1 2 3 4 5 4 chunks +17 lines, -6 lines 0 comments Download
M ui/file_manager/file_manager/main.html View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager_resources.grd View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
yawano
PTAL. Thank you!
5 years, 6 months ago (2015-06-10 07:26:22 UTC) #2
fukino
https://codereview.chromium.org/1170913006/diff/1/ui/file_manager/file_manager_resources.grd File ui/file_manager/file_manager_resources.grd (right): https://codereview.chromium.org/1170913006/diff/1/ui/file_manager/file_manager_resources.grd#newcode182 ui/file_manager/file_manager_resources.grd:182: <include name="IDR_GALLERY_ELEMENTS_GALLERY_TOGGLE_BUTTON_HTML" file="gallery/elements/gallery_toggle_button.html" type="BINDATA" /> It'd be better if ...
5 years, 6 months ago (2015-06-10 08:28:53 UTC) #3
yawano
Thank you for the review! https://codereview.chromium.org/1170913006/diff/1/ui/file_manager/file_manager_resources.grd File ui/file_manager/file_manager_resources.grd (right): https://codereview.chromium.org/1170913006/diff/1/ui/file_manager/file_manager_resources.grd#newcode182 ui/file_manager/file_manager_resources.grd:182: <include name="IDR_GALLERY_ELEMENTS_GALLERY_TOGGLE_BUTTON_HTML" file="gallery/elements/gallery_toggle_button.html" type="BINDATA" ...
5 years, 6 months ago (2015-06-10 08:55:19 UTC) #4
yawano
https://codereview.chromium.org/1170913006/diff/1/ui/file_manager/gallery/elements/gallery_toggle_button.js File ui/file_manager/gallery/elements/gallery_toggle_button.js (right): https://codereview.chromium.org/1170913006/diff/1/ui/file_manager/gallery/elements/gallery_toggle_button.js#newcode32 ui/file_manager/gallery/elements/gallery_toggle_button.js:32: onTapped_: function() { The active state here means "pressed", ...
5 years, 6 months ago (2015-06-11 03:21:31 UTC) #5
yawano
As we discussed in other place, extract as the ripple, move it to file_manager, and ...
5 years, 6 months ago (2015-06-11 05:53:12 UTC) #6
yawano
@dbeam: PTAL ui/webui/resources/js/cr/ui/menu_button.js. Thank you!
5 years, 6 months ago (2015-06-11 05:55:31 UTC) #8
fukino
https://codereview.chromium.org/1170913006/diff/40001/ui/webui/resources/js/cr/ui/menu_button.js File ui/webui/resources/js/cr/ui/menu_button.js (right): https://codereview.chromium.org/1170913006/diff/40001/ui/webui/resources/js/cr/ui/menu_button.js#newcode231 ui/webui/resources/js/cr/ui/menu_button.js:231: this.dispatchEvent(new Event('menuhide')); I think adding public event to cr.ui.Menu ...
5 years, 6 months ago (2015-06-11 06:23:31 UTC) #9
yawano
Thank you for the review! https://codereview.chromium.org/1170913006/diff/40001/ui/webui/resources/js/cr/ui/menu_button.js File ui/webui/resources/js/cr/ui/menu_button.js (right): https://codereview.chromium.org/1170913006/diff/40001/ui/webui/resources/js/cr/ui/menu_button.js#newcode231 ui/webui/resources/js/cr/ui/menu_button.js:231: this.dispatchEvent(new Event('menuhide')); I tried ...
5 years, 6 months ago (2015-06-11 07:07:21 UTC) #10
yawano
Extracted changes to menu_button.js as http://crrev.com/1178783003. We are going to rebase this CL on top ...
5 years, 6 months ago (2015-06-11 07:30:57 UTC) #11
yawano
Remove @dbeam from reviewers in this CL since we extracted changes to menu_button.js to another ...
5 years, 6 months ago (2015-06-11 07:32:25 UTC) #13
fukino
Thanks! https://codereview.chromium.org/1170913006/diff/60001/ui/file_manager/externs/files_elements.js File ui/file_manager/externs/files_elements.js (right): https://codereview.chromium.org/1170913006/diff/60001/ui/file_manager/externs/files_elements.js#newcode14 ui/file_manager/externs/files_elements.js:14: this.activated; Could you use the same format as ...
5 years, 6 months ago (2015-06-12 06:28:48 UTC) #14
yawano
Thank you for the review! PTAL. Note: With a new patch set, I changed CSS ...
5 years, 6 months ago (2015-06-16 06:36:40 UTC) #15
fukino
Thanks! lgtm with a nit. https://codereview.chromium.org/1170913006/diff/60001/ui/file_manager/file_manager/main.html File ui/file_manager/file_manager/main.html (right): https://codereview.chromium.org/1170913006/diff/60001/ui/file_manager/file_manager/main.html#newcode279 ui/file_manager/file_manager/main.html:279: <files-toggle-ripple></files-toggle-ripple> On 2015/06/16 06:36:40, ...
5 years, 6 months ago (2015-06-16 07:34:16 UTC) #16
yawano
Thank you! https://codereview.chromium.org/1170913006/diff/60001/ui/file_manager/file_manager/main.html File ui/file_manager/file_manager/main.html (right): https://codereview.chromium.org/1170913006/diff/60001/ui/file_manager/file_manager/main.html#newcode279 ui/file_manager/file_manager/main.html:279: <files-toggle-ripple></files-toggle-ripple> On 2015/06/16 07:34:16, fukino wrote: > ...
5 years, 6 months ago (2015-06-16 07:38:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1170913006/130001
5 years, 6 months ago (2015-06-16 07:39:24 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:130001)
5 years, 6 months ago (2015-06-16 08:15:08 UTC) #21
commit-bot: I haz the power
5 years, 6 months ago (2015-06-16 08:16:06 UTC) #22
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e3a3f806542a38b0219745967a6a4bb4f9f364a7
Cr-Commit-Position: refs/heads/master@{#334565}

Powered by Google App Engine
This is Rietveld 408576698