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

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

Issue 1042853004: [DevTools] Event Listeners Sidebar shows window listeners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Extracted eventListenersTreeOutline.css Created 5 years, 8 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
« no previous file with comments | « Source/devtools/front_end/sdk/RemoteObject.js ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/RuntimeModel.js
diff --git a/Source/devtools/front_end/sdk/RuntimeModel.js b/Source/devtools/front_end/sdk/RuntimeModel.js
index 5c26cf1a2992ef71546bef2ed816e3072aa36ba7..a0fda26d856faaa7bd271b95510e115521f08a48 100644
--- a/Source/devtools/front_end/sdk/RuntimeModel.js
+++ b/Source/devtools/front_end/sdk/RuntimeModel.js
@@ -488,3 +488,37 @@ WebInspector.ExecutionContext.prototype = {
__proto__: WebInspector.SDKObject.prototype
}
+
+/**
+ * @constructor
+ * @extends {WebInspector.EventListener<RuntimeAgent.EventListener>}
+ * @param {!WebInspector.Target} target
+ * @param {!RuntimeAgent.EventListener} payload
+ * @param {string} description
+ */
+WebInspector.RuntimeModel.ObjectEventListener = function(target, payload, description)
+{
+ WebInspector.EventListener.call(this, target, payload);
+ this._description = description;
+}
+
+WebInspector.RuntimeModel.ObjectEventListener.prototype = {
+ /**
+ * @override
+ * @return {boolean}
+ */
+ isObjectEventListener: function()
+ {
+ return true;
+ },
+
+ /**
+ * @return {string}
+ */
+ description: function()
+ {
+ return this._description;
+ },
+
+ __proto__: WebInspector.EventListener.prototype
+}
« no previous file with comments | « Source/devtools/front_end/sdk/RemoteObject.js ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698