|
|
Created:
5 years, 7 months ago by samli Modified:
5 years, 7 months ago Reviewers:
lushnikov CC:
aandrey+blink_chromium.org, apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, yurys+blink_chromium.org Base URL:
svn://svn.chromium.org/blink/trunk Target Ref:
refs/heads/master Project:
blink Visibility:
Public. |
DescriptionDevtools: Refactor color picker to use WI.installDragHandle()
This change removes the color pickers drag handling code and reuses the WI.installDragHandle() method. It also removes the shift drag behavior on the color drag.
BUG=477974
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195575
Patch Set 1 #Patch Set 2 : Remove empty line #
Total comments: 4
Patch Set 3 : #Messages
Total messages: 17 (2 generated)
samli@chromium.org changed reviewers: + lushnikov@chromium.org
Why do we remove shift-drag behavior? I've heard people found it useful.
https://codereview.chromium.org/1116933007/diff/20001/Source/devtools/front_e... File Source/devtools/front_end/elements/Spectrum.js (right): https://codereview.chromium.org/1116933007/diff/20001/Source/devtools/front_e... Source/devtools/front_end/elements/Spectrum.js:92: WebInspector.installDragHandle(this._draggerElement, colorDragStart.bind(this), colorDrag.bind(this), null, "default"); can we rename draggerElement into colorElement while we are here? https://codereview.chromium.org/1116933007/diff/20001/Source/devtools/front_e... Source/devtools/front_end/elements/Spectrum.js:102: this._originalColor = this._hsv.slice(0); .slice()
https://codereview.chromium.org/1116933007/diff/20001/Source/devtools/front_e... File Source/devtools/front_end/elements/Spectrum.js (right): https://codereview.chromium.org/1116933007/diff/20001/Source/devtools/front_e... Source/devtools/front_end/elements/Spectrum.js:92: WebInspector.installDragHandle(this._draggerElement, colorDragStart.bind(this), colorDrag.bind(this), null, "default"); On 2015/05/07 16:02:26, lushnikov wrote: > can we rename draggerElement into colorElement while we are here? Done. https://codereview.chromium.org/1116933007/diff/20001/Source/devtools/front_e... Source/devtools/front_end/elements/Spectrum.js:102: this._originalColor = this._hsv.slice(0); On 2015/05/07 16:02:26, lushnikov wrote: > .slice() Done.
>> Why do we remove shift-drag behavior? I've heard people found it useful. What about this? Is it proved to be unneeded?
On 2015/05/08 at 10:11:10, lushnikov wrote: > >> Why do we remove shift-drag behavior? I've heard people found it useful. > > What about this? Is it proved to be unneeded? I asked Paul about this and he was unaware of what this even did. My opinion is that it doesn't seem to be useful, is superseded by HSL representation manipulation and is not discoverable. I do not have proof this is useful or unuseful.
On 2015/05/08 10:24:09, samli wrote: > On 2015/05/08 at 10:11:10, lushnikov wrote: > > >> Why do we remove shift-drag behavior? I've heard people found it useful. > > > > What about this? Is it proved to be unneeded? > > I asked Paul about this and he was unaware of what this even did. My opinion is > that it doesn't seem to be useful, is superseded by HSL representation > manipulation and is not discoverable. > > I do not have proof this is useful or unuseful. lgtm. However, I've heard from @pfeldman about shift-drag usefulness, so let's also get his approval here for regressing this.
I like the shift-drag, furthermore, it might actually be handy in other places that support drag'n'drop.
On 2015/05/12 at 09:29:23, pfeldman wrote: > I like the shift-drag, furthermore, it might actually be handy in other places that support drag'n'drop. Does anyone else like this? As I said before, I think this is adequately superceded by HSL. "it might actually be handy in other places that support drag'n'drop" I don't understand this sentence.
On 2015/05/15 03:55:17, samli wrote: > On 2015/05/12 at 09:29:23, pfeldman wrote: > > I like the shift-drag, furthermore, it might actually be handy in other places > that support drag'n'drop. > > Does anyone else like this? As I said before, I think this is adequately > superceded by HSL. > > "it might actually be handy in other places that support drag'n'drop" I don't > understand this sentence. Would it make sense for the bezier editor?
On 2015/05/15 at 05:25:26, pfeldman wrote: > On 2015/05/15 03:55:17, samli wrote: > > On 2015/05/12 at 09:29:23, pfeldman wrote: > > > I like the shift-drag, furthermore, it might actually be handy in other places > > that support drag'n'drop. > > > > Does anyone else like this? As I said before, I think this is adequately > > superceded by HSL. > > > > "it might actually be handy in other places that support drag'n'drop" I don't > > understand this sentence. > > Would it make sense for the bezier editor? No.
ping, not sure whether I can land this or not.
Feel free to land, we'll re-create it. It does not work as is anyways.
The CQ bit was checked by samli@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1116933007/40001
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195575 |