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

Issue 2182853002: MD WebUI: rework how clearing search works (Closed)

Created:
4 years, 4 months ago by Dan Beam
Modified:
4 years, 4 months ago
Reviewers:
tsergeant
CC:
chromium-reviews, asanka, oshima+watch_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, dbeam+watch-elements_chromium.org, michaelpg+watch-elements_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-downloads_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: rework how clearing search works Previously, when clicking (X) to clear search text, the search field closed / hid its UI. It should just clear the text, as it says. Pressing Esc should continue to clear+close completely, though. Additionally, we should only show (x) when there's text to hide. We should also re-focus the search when (x) is clicked (otherwise focus gets dropped). R=tsergeant@chromium.org BUG=611315 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/7638d4b996143a2e38869215426720de854dd818 Cr-Commit-Position: refs/heads/master@{#407836}

Patch Set 1 #

Patch Set 2 : cherry-pick #

Total comments: 2

Patch Set 3 : hide (x) #

Total comments: 2

Patch Set 4 : tsergeant@ review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -20 lines) Patch
M chrome/browser/resources/md_downloads/crisper.js View 1 2 3 2 chunks +17 lines, -6 lines 0 comments Download
M chrome/browser/resources/md_downloads/vulcanized.html View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js View 1 2 3 1 chunk +17 lines, -1 line 0 comments Download
M ui/webui/resources/cr_elements/cr_search_field/cr_search_field_behavior.js View 1 chunk +0 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (14 generated)
Dan Beam
4 years, 4 months ago (2016-07-26 01:12:52 UTC) #2
tsergeant
lgtm with a little behaviour suggestion. https://codereview.chromium.org/2182853002/diff/20001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js (right): https://codereview.chromium.org/2182853002/diff/20001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js#newcode12 ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js:12: this.setValue(''); Does this ...
4 years, 4 months ago (2016-07-26 01:32:57 UTC) #9
Dan Beam
i'm also hiding the (x) when there's nothing to clear https://codereview.chromium.org/2182853002/diff/20001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js (right): https://codereview.chromium.org/2182853002/diff/20001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js#newcode12 ...
4 years, 4 months ago (2016-07-26 02:04:47 UTC) #10
tsergeant
still lgtm https://codereview.chromium.org/2182853002/diff/40001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js (right): https://codereview.chromium.org/2182853002/diff/40001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js#newcode11 ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js:11: value_: { Nit: value_: String
4 years, 4 months ago (2016-07-26 04:19:29 UTC) #12
Dan Beam
https://codereview.chromium.org/2182853002/diff/40001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js File ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js (right): https://codereview.chromium.org/2182853002/diff/40001/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js#newcode11 ui/webui/resources/cr_elements/cr_search_field/cr_search_field.js:11: value_: { On 2016/07/26 04:19:29, tsergeant wrote: > Nit: ...
4 years, 4 months ago (2016-07-26 04:46:21 UTC) #13
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/2182853002/60001
4 years, 4 months ago (2016-07-26 04:46:55 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/101925)
4 years, 4 months ago (2016-07-26 05:34:45 UTC) #18
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/2182853002/60001
4 years, 4 months ago (2016-07-26 16:40:04 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-26 17:10:31 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 17:13:51 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7638d4b996143a2e38869215426720de854dd818
Cr-Commit-Position: refs/heads/master@{#407836}

Powered by Google App Engine
This is Rietveld 408576698