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

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

Issue 2490303003: Add once field to devtools so it can be queried by lighthouse. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
index e733e8a3153d6a0422b7df183c9b0f3e5d0a8101..50265c0bd6d9aa2900f7477bd5ec5c62037fbe00 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
@@ -607,6 +607,7 @@ WebInspector.EventListener = class extends WebInspector.SDKObject {
* @param {string} type
* @param {boolean} useCapture
* @param {boolean} passive
+ * @param {boolean} once
* @param {?WebInspector.RemoteObject} handler
* @param {?WebInspector.RemoteObject} originalHandler
* @param {!WebInspector.DebuggerModel.Location} location
@@ -619,6 +620,7 @@ WebInspector.EventListener = class extends WebInspector.SDKObject {
type,
useCapture,
passive,
+ once,
handler,
originalHandler,
location,
@@ -629,6 +631,7 @@ WebInspector.EventListener = class extends WebInspector.SDKObject {
this._type = type;
this._useCapture = useCapture;
this._passive = passive;
+ this._once = once;
this._handler = handler;
this._originalHandler = originalHandler || handler;
this._location = location;
@@ -660,6 +663,13 @@ WebInspector.EventListener = class extends WebInspector.SDKObject {
}
/**
+ * @return {boolean}
+ */
+ once() {
+ return this._once;
+ }
+
+ /**
* @return {?WebInspector.RemoteObject}
*/
handler() {
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698