Chromium Code Reviews
DescriptionMaterial WebUI: cr-slider element for intelligent range mapping
Most sliders don't correspond 1:1 with a range of values. For instance,
we curate a range of valid values for pointer sensitivity, then map these
to a linear slider.
<cr-slider> takes an array of values corresponding to slider indices, and
binds the value of the <paper-slider> it wraps to the host element's property.
This simplifies the logic that was duplicated in keyboard.html and
appearance_fonts_page.html. It also fixes a rare edge case when a pref value
updates while the slider is being dragged.
BUG=611949
TEST=CrElementsBrowserTest.CrElements
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/d326605487da452867181c1fe0dc7c6580b0d714
Cr-Commit-Position: refs/heads/master@{#397517}
Patch Set 1 #
Total comments: 3
Patch Set 2 : cr-slider element #Patch Set 3 : cleanup #Patch Set 4 : rebase #
Total comments: 21
Patch Set 5 : comments #Patch Set 6 : spacing #
Total comments: 2
Patch Set 7 : comments #
Total comments: 1
Patch Set 8 : #
Total comments: 4
Patch Set 9 : dschuyler #Patch Set 10 : rebase #Patch Set 11 : rebase #Patch Set 12 : Merge cr-elements tests #
Total comments: 1
Patch Set 13 : rebase #Patch Set 14 : rebase fix #Messages
Total messages: 47 (23 generated)
|