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

Unified Diff: Source/devtools/front_end/sdk/RemoteObject.js

Issue 1319613002: [DevTools] Refactor WebInspector.EventListener (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/sdk/RemoteObject.js
diff --git a/Source/devtools/front_end/sdk/RemoteObject.js b/Source/devtools/front_end/sdk/RemoteObject.js
index b465eb2d046a9c0b08290bebb3e0b603d9a68d70..85679bf293fe3c20cba2278af66b9cc78102ee60 100644
--- a/Source/devtools/front_end/sdk/RemoteObject.js
+++ b/Source/devtools/front_end/sdk/RemoteObject.js
@@ -489,7 +489,11 @@ WebInspector.RemoteObjectImpl.prototype = {
*/
function createEventListener(payload)
{
- return new WebInspector.EventListener(this._debuggerModel, payload, this._objectId);
+ return new WebInspector.EventListener(this._target,
+ payload.type,
+ payload.useCapture,
+ payload.handler ? this.target().runtimeModel.createRemoteObject(payload.handler) : null,
+ WebInspector.DebuggerModel.Location.fromPayload(this._debuggerModel, payload.location));
}
}
},
« no previous file with comments | « Source/devtools/front_end/components/EventListenersView.js ('k') | Source/devtools/front_end/sdk/RuntimeModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698