| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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.ElementsSidebarPane} | 7 * @extends {WebInspector.ElementsSidebarPane} |
| 8 */ | 8 */ |
| 9 WebInspector.AnimationsSidebarPane = function(stylesPane) | 9 WebInspector.AnimationsSidebarPane = function(stylesPane) |
| 10 { | 10 { |
| 11 WebInspector.ElementsSidebarPane.call(this, WebInspector.UIString("Animation
s")); | 11 WebInspector.ElementsSidebarPane.call(this, WebInspector.UIString("Animation
s")); |
| 12 this._stylesPane = stylesPane; | 12 this._stylesPane = stylesPane; |
| 13 this._timeline = new WebInspector.AnimationTimeline(); | 13 this._timeline = new WebInspector.AnimationTimeline(this._stylesPane); |
| 14 this._timeline.show(this.bodyElement); | 14 this._timeline.show(this.bodyElement); |
| 15 } | 15 } |
| 16 | 16 |
| 17 WebInspector.AnimationsSidebarPane.prototype = { | 17 WebInspector.AnimationsSidebarPane.prototype = { |
| 18 /** | 18 /** |
| 19 * @override | 19 * @override |
| 20 * @param {?WebInspector.DOMNode} node | 20 * @param {?WebInspector.DOMNode} node |
| 21 */ | 21 */ |
| 22 setNode: function(node) | 22 setNode: function(node) |
| 23 { | 23 { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 this._target.animationModel.ensureEnabled(); | 63 this._target.animationModel.ensureEnabled(); |
| 64 this._timeline.redraw(); | 64 this._timeline.redraw(); |
| 65 finishCallback(); | 65 finishCallback(); |
| 66 }, | 66 }, |
| 67 | 67 |
| 68 __proto__: WebInspector.ElementsSidebarPane.prototype | 68 __proto__: WebInspector.ElementsSidebarPane.prototype |
| 69 } | 69 } |
| 70 | 70 |
| 71 WebInspector.AnimationsSidebarPane.GlobalPlaybackRates = [0.1, 0.25, 0.5, 1.0]; | 71 WebInspector.AnimationsSidebarPane.GlobalPlaybackRates = [0.1, 0.25, 0.5, 1.0]; |
| OLD | NEW |