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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.h

Issue 2513483002: DevTools: introduce perf monitor actions w/ time budget for violations that are event handlers. (Closed)
Patch Set: expose locations instead of functions 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/bindings/core/v8/ScriptEventListener.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.h b/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.h
index 3bdb787e7997d270512815f0bc8848e14dd3de0c..e97b8df836b4602d603ef621898bd46c78379d76 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.h
@@ -42,6 +42,8 @@ class ExecutionContext;
class LocalFrame;
class Node;
class QualifiedName;
+class ScheduledAction;
+class SourceLocation;
V8LazyEventListener* createAttributeEventListener(
Node*,
@@ -61,6 +63,8 @@ void getFunctionLocation(v8::Local<v8::Function>,
String& scriptId,
int& lineNumber,
int& columnNumber);
+std::unique_ptr<SourceLocation> getFunctionLocation(ExecutionContext*,
+ EventListener*);
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698