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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/Connections.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sdk/Connections.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/Connections.js b/third_party/WebKit/Source/devtools/front_end/sdk/Connections.js
index 07b5839c25e65a80ac8105a380087b1664c75263..4fa18c4331a5e70bdc537f84e6784ccb9c38d4ec 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/Connections.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/Connections.js
@@ -5,7 +5,7 @@
* @implements {InspectorBackendClass.Connection}
* @unrestricted
*/
-WebInspector.MainConnection = class {
+SDK.MainConnection = class {
/**
* @param {!InspectorBackendClass.Connection.Params} params
*/
@@ -33,14 +33,14 @@ WebInspector.MainConnection = class {
}
/**
- * @param {!WebInspector.Event} event
+ * @param {!Common.Event} event
*/
_dispatchMessage(event) {
this._onMessage.call(null, /** @type {string} */ (event.data));
}
/**
- * @param {!WebInspector.Event} event
+ * @param {!Common.Event} event
*/
_dispatchMessageChunk(event) {
var messageChunk = /** @type {string} */ (event.data['messageChunk']);
@@ -58,7 +58,7 @@ WebInspector.MainConnection = class {
}
/**
- * @param {!WebInspector.Event} event
+ * @param {!Common.Event} event
*/
_evaluateForTestInFrontend(event) {
if (!InspectorFrontendHost.isUnderTest())
@@ -88,7 +88,7 @@ WebInspector.MainConnection = class {
*/
disconnect() {
var onDisconnect = this._onDisconnect;
- WebInspector.EventTarget.removeEventListeners(this._eventListeners);
+ Common.EventTarget.removeEventListeners(this._eventListeners);
this._onDisconnect = null;
this._onMessage = null;
this._disconnected = true;
@@ -107,7 +107,7 @@ WebInspector.MainConnection = class {
* @implements {InspectorBackendClass.Connection}
* @unrestricted
*/
-WebInspector.WebSocketConnection = class {
+SDK.WebSocketConnection = class {
/**
* @param {string} url
* @param {function()} onWebSocketDisconnect
@@ -190,7 +190,7 @@ WebInspector.WebSocketConnection = class {
* @implements {InspectorBackendClass.Connection}
* @unrestricted
*/
-WebInspector.StubConnection = class {
+SDK.StubConnection = class {
/**
* @param {!InspectorBackendClass.Connection.Params} params
*/

Powered by Google App Engine
This is Rietveld 408576698