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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/main/RemoteLocationManager.js

Issue 2421913003: DevTools: allow reattaching main target live. (Closed)
Patch Set: same Created 4 years, 2 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 // 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 * @extends {WebInspector.SDKObject} 7 * @extends {WebInspector.SDKObject}
8 * @param {!WebInspector.Target} target 8 * @param {!WebInspector.Target} target
9 * @implements {BrowserAgent.Dispatcher} 9 * @implements {BrowserAgent.Dispatcher}
10 */ 10 */
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 WebInspector.RemoteLocationConnection.prototype = { 133 WebInspector.RemoteLocationConnection.prototype = {
134 /** 134 /**
135 * @override 135 * @override
136 * @param {!Object} messageObject 136 * @param {!Object} messageObject
137 */ 137 */
138 sendMessage: function(messageObject) 138 sendMessage: function(messageObject)
139 { 139 {
140 this._agent.sendMessage(this._targetId, JSON.stringify(messageObject)); 140 this._agent.sendMessage(this._targetId, JSON.stringify(messageObject));
141 }, 141 },
142 142
143 _close: function() 143 forceClose: function()
dgozman 2016/10/15 00:26:26 @override
144 { 144 {
145 this.connectionClosed("node_detached"); 145 this._agent.detach(this._targetId, ()=>{});
dgozman 2016/10/15 00:26:26 () => {}
146 }, 146 },
147 147
148 __proto__: InspectorBackendClass.Connection.prototype 148 __proto__: InspectorBackendClass.Connection.prototype
149 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698