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

Issue 2510883002: DevTools: all swatches should have a default focused element (Closed)

Created:
4 years, 1 month ago by luoe
Modified:
4 years, 1 month ago
Reviewers:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: all swatches should have a default focused element Color swatches correctly respond to 'Enter' and 'Esc' because Spectrum calls focus() whenever it loads. Bezier and shadow editors did not. This CL makes bezier and shadow editors set a default focused element. SwatchPopoverHelper now calls focus() after showing a view, instead of requiring each swatch-popover implementation call focus. One peculiarity with color swatches is they may hide and show themselves after loading a palette. To keep focus on the popover, focus restoring logic was added to the SwatchPopoverHelper whenever hiding an old popover. BUG=665801 Committed: https://crrev.com/0384ce04d25ba97446b20e7ca2d423cec10c2ffd Cr-Commit-Position: refs/heads/master@{#433382}

Patch Set 1 #

Patch Set 2 : a #

Patch Set 3 : a #

Total comments: 4

Patch Set 4 : ac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -11 lines) Patch
M third_party/WebKit/Source/devtools/front_end/components/Spectrum.js View 3 chunks +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/BezierEditor.js View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/CSSShadowEditor.js View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Popover.js View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/SwatchPopoverHelper.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
luoe
PTAL
4 years, 1 month ago (2016-11-17 00:09:16 UTC) #4
dgozman
https://codereview.chromium.org/2510883002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/Popover.js File third_party/WebKit/Source/devtools/front_end/ui/Popover.js (right): https://codereview.chromium.org/2510883002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/Popover.js#newcode105 third_party/WebKit/Source/devtools/front_end/ui/Popover.js:105: view.focus(); How do you focus view before showing it ...
4 years, 1 month ago (2016-11-17 01:29:50 UTC) #7
luoe
https://codereview.chromium.org/2510883002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/Popover.js File third_party/WebKit/Source/devtools/front_end/ui/Popover.js (right): https://codereview.chromium.org/2510883002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/Popover.js#newcode105 third_party/WebKit/Source/devtools/front_end/ui/Popover.js:105: view.focus(); On 2016/11/17 01:29:50, dgozman wrote: > How do ...
4 years, 1 month ago (2016-11-17 21:38:08 UTC) #10
luoe
PTAL
4 years, 1 month ago (2016-11-18 20:14:30 UTC) #11
dgozman
lgtm
4 years, 1 month ago (2016-11-18 23:31:42 UTC) #12
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/2510883002/60001
4 years, 1 month ago (2016-11-19 02:21:03 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-19 02:25:39 UTC) #20
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0384ce04d25ba97446b20e7ca2d423cec10c2ffd Cr-Commit-Position: refs/heads/master@{#433382}
4 years, 1 month ago (2016-11-19 02:28:03 UTC) #22
luoe
4 years, 1 month ago (2016-11-22 19:59:57 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2527503002/ by luoe@chromium.org.

The reason for reverting is: This introduced a color picker bug
crbug.com/667739.  To land, we need to fix the regression..

Powered by Google App Engine
This is Rietveld 408576698