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

Issue 1963503002: MD WebUI: Add shared cr-toolbar element (Closed)

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

Description

MD WebUI: Add shared cr-toolbar element The toolbar currently contains the page name and a search field, which reuses the implementation of the existing <cr-search-field> element. The toolbar has some responsive behavior and basic animations. This is sufficient to allow us to replace some of the internals of <history-toolbar> with a <cr-toolbar>. The two main features which still need to be implemented are a menu button in the thin layout, and a spinner when a search is in progress. BUG=610609 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/66d8b689e6e5e4a8f2b74430e0680e459021c5b8 Cr-Commit-Position: refs/heads/master@{#396115}

Patch Set 1 : Really really this time #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : Review comments #

Patch Set 4 : Minor tweaks #

Total comments: 16

Patch Set 5 : Review comments #

Total comments: 19

Patch Set 6 : Review comments #

Patch Set 7 : Experimental: cr-toolbar-search-field #

Patch Set 8 : Remove dom-if #

Total comments: 8

Patch Set 9 : Review comments and input label #

Patch Set 10 : Add todo and fix nits #

Total comments: 20

Patch Set 11 : Style review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -252 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/compiled_resources2.gyp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_history/history_toolbar.html View 1 2 4 chunks +8 lines, -60 lines 0 comments Download
M chrome/browser/resources/md_history/history_toolbar.js View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/md_history_ui.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/md_history/history_toolbar_test.js View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_search_field/compiled_resources2.gyp View 1 chunk +8 lines, -1 line 0 comments Download
M ui/webui/resources/cr_elements/cr_search_field/cr_search_field.css View 1 2 3 4 5 6 7 4 chunks +12 lines, -8 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html View 1 2 3 4 5 6 7 2 chunks +12 lines, -13 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js View 1 chunk +1 line, -115 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.html View 1 chunk +1 line, -0 lines 0 comments Download
A + ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js View 1 2 3 4 5 6 7 8 9 10 5 chunks +32 lines, -38 lines 0 comments Download
A + ui/webui/resources/cr_elements/cr_toolbar/compiled_resources2.gyp View 1 2 3 4 5 6 1 chunk +4 lines, -9 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +56 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +35 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +100 lines, -0 lines 0 comments Download
A ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +51 lines, -0 lines 0 comments Download
M ui/webui/resources/cr_elements_resources.grdp View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (21 generated)
tsergeant
aaaalright, +calamity@ for initial review
4 years, 7 months ago (2016-05-12 05:13:47 UTC) #10
calamity
Here's a first round. https://codereview.chromium.org/1963503002/diff/140001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js (right): https://codereview.chromium.org/1963503002/diff/140001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js#newcode16 ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js:16: * @polymerBehavior Can we get ...
4 years, 7 months ago (2016-05-16 04:27:34 UTC) #11
tsergeant
https://codereview.chromium.org/1963503002/diff/140001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js (right): https://codereview.chromium.org/1963503002/diff/140001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js#newcode16 ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js:16: * @polymerBehavior On 2016/05/16 04:27:34, calamity wrote: > Can ...
4 years, 7 months ago (2016-05-17 03:24:39 UTC) #13
calamity
lgtm
4 years, 7 months ago (2016-05-17 06:38:29 UTC) #14
tsergeant
+dbeam@ for ui/webui owners, as the original author of the search field. CCing dschuyler@ as ...
4 years, 7 months ago (2016-05-18 03:42:14 UTC) #16
dschuyler
On 2016/05/18 03:42:14, tsergeant wrote: > +dbeam@ for ui/webui owners, as the original author of ...
4 years, 7 months ago (2016-05-18 17:00:44 UTC) #18
dpapad
https://codereview.chromium.org/1963503002/diff/200001/chrome/browser/resources/md_history/history_toolbar.js File chrome/browser/resources/md_history/history_toolbar.js (right): https://codereview.chromium.org/1963503002/diff/200001/chrome/browser/resources/md_history/history_toolbar.js#newcode90 chrome/browser/resources/md_history/history_toolbar.js:90: var toolbar = /** @type {CrToolbarElement} */(this.$['main-toolbar']); Is toolbar ...
4 years, 7 months ago (2016-05-18 23:39:14 UTC) #20
tsergeant
https://codereview.chromium.org/1963503002/diff/200001/chrome/browser/resources/md_history/history_toolbar.js File chrome/browser/resources/md_history/history_toolbar.js (right): https://codereview.chromium.org/1963503002/diff/200001/chrome/browser/resources/md_history/history_toolbar.js#newcode90 chrome/browser/resources/md_history/history_toolbar.js:90: var toolbar = /** @type {CrToolbarElement} */(this.$['main-toolbar']); On 2016/05/18 ...
4 years, 7 months ago (2016-05-19 07:11:56 UTC) #21
dpapad
Design question: Why is the cr-toolbar "implement" "cr-search-field" behavior (inheritance model), instead of simply using ...
4 years, 7 months ago (2016-05-19 23:19:47 UTC) #22
tsergeant
On 2016/05/19 23:19:47, dpapad wrote: > Design question: > Why is the cr-toolbar "implement" "cr-search-field" ...
4 years, 7 months ago (2016-05-20 00:26:57 UTC) #23
tsergeant
https://codereview.chromium.org/1963503002/diff/220001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html File ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html (right): https://codereview.chromium.org/1963503002/diff/220001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html#newcode14 ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html:14: <template is="dom-if" if="[[showingSearch_]]" id="searchContainer"> On 2016/05/19 23:19:46, dpapad wrote: ...
4 years, 7 months ago (2016-05-20 00:27:13 UTC) #24
dpapad
On 2016/05/20 at 00:26:57, tsergeant wrote: > On 2016/05/19 23:19:47, dpapad wrote: > > Design ...
4 years, 7 months ago (2016-05-20 01:10:39 UTC) #25
dpapad
https://codereview.chromium.org/1963503002/diff/220001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html File ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html (right): https://codereview.chromium.org/1963503002/diff/220001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html#newcode14 ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html:14: <template is="dom-if" if="[[showingSearch_]]" id="searchContainer"> On 2016/05/20 at 00:27:12, tsergeant ...
4 years, 7 months ago (2016-05-20 01:11:31 UTC) #26
tsergeant
I've looked into this over the last couple of days, and my conclusion is that ...
4 years, 7 months ago (2016-05-24 00:39:49 UTC) #27
dpapad
On 2016/05/24 at 00:39:49, tsergeant wrote: > I've looked into this over the last couple ...
4 years, 7 months ago (2016-05-24 01:22:18 UTC) #28
tsergeant
On 2016/05/24 01:22:18, dpapad wrote: > Having all the search field related HTML and JS ...
4 years, 7 months ago (2016-05-24 04:52:57 UTC) #30
dpapad
On 2016/05/24 at 04:52:57, tsergeant wrote: > On 2016/05/24 01:22:18, dpapad wrote: > > Having ...
4 years, 7 months ago (2016-05-24 18:00:28 UTC) #31
tsergeant
Cool! I tend to agree with you that it makes sense to remove the dom-if ...
4 years, 7 months ago (2016-05-25 00:38:42 UTC) #32
dpapad
Do you plan to add some tests in a follow up CL? https://codereview.chromium.org/1963503002/diff/300001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js ...
4 years, 7 months ago (2016-05-25 01:20:11 UTC) #33
tsergeant
I'll add some tests for this -- if you're happy for them to be in ...
4 years, 7 months ago (2016-05-25 07:01:31 UTC) #35
dpapad
lgtm LGTM with mostly style comments. Regarding tests, since this is a re-usable component, it ...
4 years, 7 months ago (2016-05-26 00:42:52 UTC) #36
tsergeant
Thanks! Tests will follow in a day or two. https://codereview.chromium.org/1963503002/diff/360001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js (right): https://codereview.chromium.org/1963503002/diff/360001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js#newcode40 ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js:40: ...
4 years, 7 months ago (2016-05-26 01:34:52 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963503002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963503002/380001
4 years, 7 months ago (2016-05-26 01:35:32 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/28080)
4 years, 7 months ago (2016-05-26 03:16:16 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963503002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963503002/380001
4 years, 7 months ago (2016-05-26 03:20:36 UTC) #44
commit-bot: I haz the power
Committed patchset #11 (id:380001)
4 years, 7 months ago (2016-05-26 04:08:27 UTC) #46
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 04:10:12 UTC) #48
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/66d8b689e6e5e4a8f2b74430e0680e459021c5b8
Cr-Commit-Position: refs/heads/master@{#396115}

Powered by Google App Engine
This is Rietveld 408576698