| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 if (this._mode === mode) | 138 if (this._mode === mode) |
| 139 return; | 139 return; |
| 140 this._mode = mode; | 140 this._mode = mode; |
| 141 this._updateModeButtons(); | 141 this._updateModeButtons(); |
| 142 this.element.focus(); | 142 this.element.focus(); |
| 143 }, | 143 }, |
| 144 | 144 |
| 145 _updateModeButtons: function() | 145 _updateModeButtons: function() |
| 146 { | 146 { |
| 147 for (var mode in this._modeButtons) | 147 for (var mode in this._modeButtons) |
| 148 this._modeButtons[mode].toggled = (mode === this._mode); | 148 this._modeButtons[mode].setToggled(mode === this._mode); |
| 149 }, | 149 }, |
| 150 | 150 |
| 151 /** | 151 /** |
| 152 * @param {!Event=} event | 152 * @param {!Event=} event |
| 153 */ | 153 */ |
| 154 resetAndNotify: function(event) | 154 resetAndNotify: function(event) |
| 155 { | 155 { |
| 156 this._reset(); | 156 this._reset(); |
| 157 this._postChangeEvent(); | 157 this._postChangeEvent(); |
| 158 if (event) | 158 if (event) |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 _onDragEnd: function() | 327 _onDragEnd: function() |
| 328 { | 328 { |
| 329 delete this._originX; | 329 delete this._originX; |
| 330 delete this._originY; | 330 delete this._originY; |
| 331 delete this._oldRotateX; | 331 delete this._oldRotateX; |
| 332 delete this._oldRotateY; | 332 delete this._oldRotateY; |
| 333 }, | 333 }, |
| 334 | 334 |
| 335 __proto__: WebInspector.Object.prototype | 335 __proto__: WebInspector.Object.prototype |
| 336 } | 336 } |
| OLD | NEW |