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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @implements {WebInspector.TargetManager.Observer} 7 * @implements {WebInspector.TargetManager.Observer}
8 */ 8 */
9 WebInspector.MultitargetTouchModel = function() 9 WebInspector.MultitargetTouchModel = function()
10 { 10 {
11 this._touchEnabled = false; 11 this._touchEnabled = false;
12 this._touchMobile = false; 12 this._touchMobile = false;
13 this._customTouchEnabled = false; 13 this._customTouchEnabled = false;
14 14
15 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capabili ty.Browser); 15 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capabili ty.Browser);
16 } 16 };
17 17
18 WebInspector.MultitargetTouchModel._symbol = Symbol("MultitargetTouchModel.symbo l"); 18 WebInspector.MultitargetTouchModel._symbol = Symbol("MultitargetTouchModel.symbo l");
19 19
20 WebInspector.MultitargetTouchModel.prototype = { 20 WebInspector.MultitargetTouchModel.prototype = {
21 /** 21 /**
22 * @param {boolean} enabled 22 * @param {boolean} enabled
23 * @param {boolean} mobile 23 * @param {boolean} mobile
24 */ 24 */
25 setTouchEnabled: function(enabled, mobile) 25 setTouchEnabled: function(enabled, mobile)
26 { 26 {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 /** 125 /**
126 * @override 126 * @override
127 * @param {!WebInspector.Target} target 127 * @param {!WebInspector.Target} target
128 */ 128 */
129 targetRemoved: function(target) 129 targetRemoved: function(target)
130 { 130 {
131 var domModel = WebInspector.DOMModel.fromTarget(target); 131 var domModel = WebInspector.DOMModel.fromTarget(target);
132 if (domModel) 132 if (domModel)
133 domModel.removeEventListener(WebInspector.DOMModel.Events.InspectMod eWillBeToggled, this._inspectModeToggled, this); 133 domModel.removeEventListener(WebInspector.DOMModel.Events.InspectMod eWillBeToggled, this._inspectModeToggled, this);
134 } 134 }
135 } 135 };
136 136
137 137
138 /** @type {?WebInspector.MultitargetTouchModel} */ 138 /** @type {?WebInspector.MultitargetTouchModel} */
139 WebInspector.MultitargetTouchModel._instance = null; 139 WebInspector.MultitargetTouchModel._instance = null;
140 140
141 /** 141 /**
142 * @return {!WebInspector.MultitargetTouchModel} 142 * @return {!WebInspector.MultitargetTouchModel}
143 */ 143 */
144 WebInspector.MultitargetTouchModel.instance = function() 144 WebInspector.MultitargetTouchModel.instance = function()
145 { 145 {
146 if (!WebInspector.MultitargetTouchModel._instance) 146 if (!WebInspector.MultitargetTouchModel._instance)
147 WebInspector.MultitargetTouchModel._instance = new WebInspector.Multitar getTouchModel(); 147 WebInspector.MultitargetTouchModel._instance = new WebInspector.Multitar getTouchModel();
148 return /** @type {!WebInspector.MultitargetTouchModel} */ (WebInspector.Mult itargetTouchModel._instance); 148 return /** @type {!WebInspector.MultitargetTouchModel} */ (WebInspector.Mult itargetTouchModel._instance);
149 } 149 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698