Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: Source/devtools/front_end/timeline/TransformController.js

Issue 722713002: DevTools: get rid of getters and setters in StatusBarButton. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/toolbox/ResponsiveDesignView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698