| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @constructor | 8 * @constructor |
| 9 * @extends {WebInspector.Object} | 9 * @extends {WebInspector.Object} |
| 10 * @param {!Element} element | 10 * @param {!Element} element |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 this._modeButtons[WebInspector.TransformController.Modes.Rotate] = rotat
eModeButton; | 38 this._modeButtons[WebInspector.TransformController.Modes.Rotate] = rotat
eModeButton; |
| 39 this._controlPanelToolbar.appendToolbarItem(rotateModeButton); | 39 this._controlPanelToolbar.appendToolbarItem(rotateModeButton); |
| 40 } | 40 } |
| 41 this._setMode(WebInspector.TransformController.Modes.Pan); | 41 this._setMode(WebInspector.TransformController.Modes.Pan); |
| 42 | 42 |
| 43 var resetButton = new WebInspector.ToolbarButton(WebInspector.UIString("Rese
t transform (0)"), "center-toolbar-item"); | 43 var resetButton = new WebInspector.ToolbarButton(WebInspector.UIString("Rese
t transform (0)"), "center-toolbar-item"); |
| 44 resetButton.addEventListener("click", this.resetAndNotify.bind(this, undefin
ed)); | 44 resetButton.addEventListener("click", this.resetAndNotify.bind(this, undefin
ed)); |
| 45 this._controlPanelToolbar.appendToolbarItem(resetButton); | 45 this._controlPanelToolbar.appendToolbarItem(resetButton); |
| 46 | 46 |
| 47 this._reset(); | 47 this._reset(); |
| 48 } | 48 }; |
| 49 | 49 |
| 50 /** @enum {symbol} */ | 50 /** @enum {symbol} */ |
| 51 WebInspector.TransformController.Events = { | 51 WebInspector.TransformController.Events = { |
| 52 TransformChanged: Symbol("TransformChanged") | 52 TransformChanged: Symbol("TransformChanged") |
| 53 } | 53 }; |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * @enum {string} | 56 * @enum {string} |
| 57 */ | 57 */ |
| 58 WebInspector.TransformController.Modes = { | 58 WebInspector.TransformController.Modes = { |
| 59 Pan: "Pan", | 59 Pan: "Pan", |
| 60 Rotate: "Rotate", | 60 Rotate: "Rotate", |
| 61 } | 61 }; |
| 62 | 62 |
| 63 WebInspector.TransformController.prototype = { | 63 WebInspector.TransformController.prototype = { |
| 64 /** | 64 /** |
| 65 * @return {!WebInspector.Toolbar} | 65 * @return {!WebInspector.Toolbar} |
| 66 */ | 66 */ |
| 67 toolbar: function() | 67 toolbar: function() |
| 68 { | 68 { |
| 69 return this._controlPanelToolbar; | 69 return this._controlPanelToolbar; |
| 70 }, | 70 }, |
| 71 | 71 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 323 |
| 324 _onDragEnd: function() | 324 _onDragEnd: function() |
| 325 { | 325 { |
| 326 delete this._originX; | 326 delete this._originX; |
| 327 delete this._originY; | 327 delete this._originY; |
| 328 delete this._oldRotateX; | 328 delete this._oldRotateX; |
| 329 delete this._oldRotateY; | 329 delete this._oldRotateY; |
| 330 }, | 330 }, |
| 331 | 331 |
| 332 __proto__: WebInspector.Object.prototype | 332 __proto__: WebInspector.Object.prototype |
| 333 } | 333 }; |
| OLD | NEW |