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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/Target.js

Issue 2533073003: [DevTools] Remove workspace-test.js part1. (Closed)
Patch Set: Created 4 years 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 * @unrestricted 8 * @unrestricted
9 */ 9 */
10 SDK.Target = class extends Protocol.TargetBase { 10 SDK.Target = class extends Protocol.TargetBase {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 /** 175 /**
176 * @enum {number} 176 * @enum {number}
177 */ 177 */
178 SDK.Target.Capability = { 178 SDK.Target.Capability = {
179 Browser: 1, 179 Browser: 1,
180 DOM: 2, 180 DOM: 2,
181 JS: 4, 181 JS: 4,
182 Log: 8, 182 Log: 8,
183 Network: 16, 183 Network: 16,
184 Target: 32 184 Target: 32,
185
186 AllForTests: 63
185 }; 187 };
186 188
187 SDK.Target._nextId = 1; 189 SDK.Target._nextId = 1;
188 190
189 /** 191 /**
190 * @unrestricted 192 * @unrestricted
191 */ 193 */
192 SDK.SDKObject = class extends Common.Object { 194 SDK.SDKObject = class extends Common.Object {
193 /** 195 /**
194 * @param {!SDK.Target} target 196 * @param {!SDK.Target} target
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 /** 241 /**
240 * @param {!Common.Event} event 242 * @param {!Common.Event} event
241 */ 243 */
242 _targetDisposed(event) { 244 _targetDisposed(event) {
243 var target = /** @type {!SDK.Target} */ (event.data); 245 var target = /** @type {!SDK.Target} */ (event.data);
244 if (target !== this._target) 246 if (target !== this._target)
245 return; 247 return;
246 this.dispose(); 248 this.dispose();
247 } 249 }
248 }; 250 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698