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

Side by Side Diff: Source/devtools/front_end/components/WorkerFrontendManager.js

Issue 472453002: DevTools: move "Workers in main window" out of experiments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 WebInspector.WorkerFrontendManager.prototype = { 47 WebInspector.WorkerFrontendManager.prototype = {
48 48
49 /** 49 /**
50 * @param {!WebInspector.Event} event 50 * @param {!WebInspector.Event} event
51 */ 51 */
52 _workerAdded: function(event) 52 _workerAdded: function(event)
53 { 53 {
54 var data = /** @type {{workerId: number, url: string, inspectorConnected : boolean}} */ (event.data); 54 var data = /** @type {{workerId: number, url: string, inspectorConnected : boolean}} */ (event.data);
55 55
56 if (data.inspectorConnected && !WebInspector.experimentsSettings.workers InMainWindow.isEnabled()) 56 if (data.inspectorConnected)
57 this._openInspectorWindow(data.workerId, true); 57 this._openInspectorWindow(data.workerId, true);
58 }, 58 },
59 59
60 /** 60 /**
61 * @param {!WebInspector.Event} event 61 * @param {!WebInspector.Event} event
62 */ 62 */
63 _workerRemoved: function(event) 63 _workerRemoved: function(event)
64 { 64 {
65 var data = /** @type {{workerId: number, url: string}} */ (event.data); 65 var data = /** @type {{workerId: number, url: string}} */ (event.data);
66 66
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 WorkerAgent.disconnectFromWorker(parseInt(workerId, 10)); 163 WorkerAgent.disconnectFromWorker(parseInt(workerId, 10));
164 } 164 }
165 } 165 }
166 166
167 } 167 }
168 /** 168 /**
169 * @type {?WebInspector.WorkerFrontendManager} 169 * @type {?WebInspector.WorkerFrontendManager}
170 */ 170 */
171 WebInspector.workerFrontendManager = null; 171 WebInspector.workerFrontendManager = null;
172 172
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/TargetsComboBoxController.js ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698