| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 */ | 8 */ |
| 9 WebInspector.BezierEditor = function() | 9 WebInspector.BezierEditor = function() |
| 10 { | 10 { |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 iconElement.addEventListener("click", this._presetCategorySelected.bind(
this, category)); | 195 iconElement.addEventListener("click", this._presetCategorySelected.bind(
this, category)); |
| 196 return category; | 196 return category; |
| 197 }, | 197 }, |
| 198 | 198 |
| 199 /** | 199 /** |
| 200 * @param {!Element} parentElement | 200 * @param {!Element} parentElement |
| 201 * @param {string} className | 201 * @param {string} className |
| 202 * @param {string} drawPath | 202 * @param {string} drawPath |
| 203 * @return {!Element} | 203 * @return {!Element} |
| 204 */ | 204 */ |
| 205 _createPresetModifyIcon: function (parentElement, className, drawPath) | 205 _createPresetModifyIcon: function(parentElement, className, drawPath) |
| 206 { | 206 { |
| 207 var icon = parentElement.createSVGChild("svg", "bezier-preset-modify " +
className); | 207 var icon = parentElement.createSVGChild("svg", "bezier-preset-modify " +
className); |
| 208 icon.setAttribute("width", 20); | 208 icon.setAttribute("width", 20); |
| 209 icon.setAttribute("height", 20); | 209 icon.setAttribute("height", 20); |
| 210 var path = icon.createSVGChild("path"); | 210 var path = icon.createSVGChild("path"); |
| 211 path.setAttribute("d", drawPath); | 211 path.setAttribute("d", drawPath); |
| 212 return icon; | 212 return icon; |
| 213 }, | 213 }, |
| 214 | 214 |
| 215 _unselectPresets: function() | 215 _unselectPresets: function() |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 var slice = this._previewOnion.createChild("div", "bezier-preview-an
imation"); | 272 var slice = this._previewOnion.createChild("div", "bezier-preview-an
imation"); |
| 273 var player = slice.animate([{ transform: "translateX(0px)", easing:
this._bezier.asCSSText() }, { transform: "translateX(218px)" }], | 273 var player = slice.animate([{ transform: "translateX(0px)", easing:
this._bezier.asCSSText() }, { transform: "translateX(218px)" }], |
| 274 { duration: animationDuration, fill: "forwards" }); | 274 { duration: animationDuration, fill: "forwards" }); |
| 275 player.pause(); | 275 player.pause(); |
| 276 player.currentTime = animationDuration * i / numberOnionSlices; | 276 player.currentTime = animationDuration * i / numberOnionSlices; |
| 277 } | 277 } |
| 278 }, | 278 }, |
| 279 | 279 |
| 280 __proto__: WebInspector.VBox.prototype | 280 __proto__: WebInspector.VBox.prototype |
| 281 } | 281 } |
| OLD | NEW |