DescriptionDispatch change event for input type=color when colorpicker is closed
Change event should be trigger when colorpicker is closed. In current it dispatches for each value change in colorpicker.
In current code, JS function selectColorInColorChooser(which in turn call didChooseColor) set the color and expects dispatch change event. SetValue also calls didChooseColor. Since both JS function and setValue are calling didChooseColor, it ends up firing change event for each value change.
This CL dispatches change event from endChooserColor to solve change event not dispatched when value is set by the user. Since mac, uses non-modal window, it still dispatches change event.
To test the functionality endColorChooser has been added to test value added, only on close of color chooser change event is dispatched.
BUG=405059
R=tkent, keishi
TEST=Updated tests to check changing color does not dispatch change event, only on closing of window it does.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182433
Patch Set 1 #
Total comments: 4
Patch Set 2 : Added endColorChooser in internals for testing purpose, added isModalColorChooser to differentiate … #Patch Set 3 : Mac test fix #
Total comments: 11
Patch Set 4 : Added didEndChooser in InputType to avoid static cast #
Total comments: 8
Patch Set 5 : Added new expected file for mac #Patch Set 6 : Implemented colorChooserClient support #Messages
Total messages: 26 (6 generated)
|