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

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

Issue 2261933002: DevTools: Use JS symbols instead of strings for eligible events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
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 29 matching lines...) Expand all
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 /** 50 /** @enum {symbol} */
51 * @enum {string}
52 */
53 WebInspector.TransformController.Events = { 51 WebInspector.TransformController.Events = {
54 TransformChanged: "TransformChanged" 52 TransformChanged: Symbol("TransformChanged")
55 } 53 }
56 54
57 /** 55 /**
58 * @enum {string} 56 * @enum {string}
59 */ 57 */
60 WebInspector.TransformController.Modes = { 58 WebInspector.TransformController.Modes = {
61 Pan: "Pan", 59 Pan: "Pan",
62 Rotate: "Rotate", 60 Rotate: "Rotate",
63 } 61 }
64 62
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 _onDragEnd: function() 324 _onDragEnd: function()
327 { 325 {
328 delete this._originX; 326 delete this._originX;
329 delete this._originY; 327 delete this._originY;
330 delete this._oldRotateX; 328 delete this._oldRotateX;
331 delete this._oldRotateY; 329 delete this._oldRotateY;
332 }, 330 },
333 331
334 __proto__: WebInspector.Object.prototype 332 __proto__: WebInspector.Object.prototype
335 } 333 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698