| 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 * @implements {WebInspector.TargetManager.Observer} | 8 * @implements {WebInspector.TargetManager.Observer} |
| 9 */ | 9 */ |
| 10 WebInspector.AnimationTimeline = function() | 10 WebInspector.AnimationTimeline = function() |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 screenshots[0].onload = onFirstScreenshotLoaded.bind(null, screensho
ts); | 199 screenshots[0].onload = onFirstScreenshotLoaded.bind(null, screensho
ts); |
| 200 else | 200 else |
| 201 onFirstScreenshotLoaded(screenshots); | 201 onFirstScreenshotLoaded(screenshots); |
| 202 | 202 |
| 203 /** | 203 /** |
| 204 * @param {!Array.<!Image>} screenshots | 204 * @param {!Array.<!Image>} screenshots |
| 205 */ | 205 */ |
| 206 function onFirstScreenshotLoaded(screenshots) | 206 function onFirstScreenshotLoaded(screenshots) |
| 207 { | 207 { |
| 208 var content = new WebInspector.AnimationScreenshotPopover(screenshot
s); | 208 var content = new WebInspector.AnimationScreenshotPopover(screenshot
s); |
| 209 popover.setNoMargins(true); | 209 popover.setNoPadding(true); |
| 210 popover.showView(content, anchor); | 210 popover.showView(content, anchor); |
| 211 } | 211 } |
| 212 }, | 212 }, |
| 213 | 213 |
| 214 _onHidePopover: function() | 214 _onHidePopover: function() |
| 215 { | 215 { |
| 216 }, | 216 }, |
| 217 | 217 |
| 218 _togglePauseAll: function() | 218 _togglePauseAll: function() |
| 219 { | 219 { |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 */ | 763 */ |
| 764 WebInspector.AnimationTimeline.StepTimingFunction.parse = function(text) { | 764 WebInspector.AnimationTimeline.StepTimingFunction.parse = function(text) { |
| 765 var match = text.match(/^steps\((\d+), (start|middle)\)$/); | 765 var match = text.match(/^steps\((\d+), (start|middle)\)$/); |
| 766 if (match) | 766 if (match) |
| 767 return new WebInspector.AnimationTimeline.StepTimingFunction(parseInt(ma
tch[1], 10), match[2]); | 767 return new WebInspector.AnimationTimeline.StepTimingFunction(parseInt(ma
tch[1], 10), match[2]); |
| 768 match = text.match(/^steps\((\d+)\)$/); | 768 match = text.match(/^steps\((\d+)\)$/); |
| 769 if (match) | 769 if (match) |
| 770 return new WebInspector.AnimationTimeline.StepTimingFunction(parseInt(ma
tch[1], 10), "end"); | 770 return new WebInspector.AnimationTimeline.StepTimingFunction(parseInt(ma
tch[1], 10), "end"); |
| 771 return null; | 771 return null; |
| 772 } | 772 } |
| OLD | NEW |