OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Brian Grinstead All rights reserved. | 2 * Copyright (C) 2011 Brian Grinstead All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 this._onchange(); | 125 this._onchange(); |
126 } | 126 } |
127 }; | 127 }; |
128 | 128 |
129 WebInspector.Spectrum.Events = { | 129 WebInspector.Spectrum.Events = { |
130 ColorChanged: "ColorChanged" | 130 ColorChanged: "ColorChanged" |
131 }; | 131 }; |
132 | 132 |
133 /** | 133 /** |
| 134 * @param {!Element} element |
134 * @param {function(!Element, number, number, !MouseEvent)=} onmove | 135 * @param {function(!Element, number, number, !MouseEvent)=} onmove |
135 * @param {function(!Element, !MouseEvent)=} onstart | 136 * @param {function(!Element, !MouseEvent)=} onstart |
136 * @param {function(!Element, !MouseEvent)=} onstop | 137 * @param {function(!Element, !MouseEvent)=} onstop |
137 */ | 138 */ |
138 WebInspector.Spectrum.draggable = function(element, onmove, onstart, onstop) { | 139 WebInspector.Spectrum.draggable = function(element, onmove, onstart, onstop) { |
139 | 140 |
140 var doc = document; | 141 var doc = document; |
141 var dragging; | 142 var dragging; |
142 var offset; | 143 var offset; |
143 var scrollOffset; | 144 var scrollOffset; |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 | 444 |
444 WebInspector.ColorSwatch.prototype = { | 445 WebInspector.ColorSwatch.prototype = { |
445 /** | 446 /** |
446 * @param {string} colorString | 447 * @param {string} colorString |
447 */ | 448 */ |
448 setColorString: function(colorString) | 449 setColorString: function(colorString) |
449 { | 450 { |
450 this._swatchInnerElement.style.backgroundColor = colorString; | 451 this._swatchInnerElement.style.backgroundColor = colorString; |
451 } | 452 } |
452 } | 453 } |
OLD | NEW |