OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |