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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js

Issue 2733093003: DevTools: instrument user callbacks based on generic probes, remove NativeBreakpoint. (Closed)
Patch Set: test fixed Created 3 years, 9 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: third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
index c3a0c34077ec6ba13eaf02b31be4e26957724f10..fe8e906d72701dd2795520301b9682663ef111aa 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
@@ -64,7 +64,9 @@ Sources.EventListenerBreakpointsSidebarPane = class extends UI.VBox {
]);
this._createCategory(Common.UIString('Script'), ['scriptFirstStatement', 'scriptBlockedByCSP'], true);
this._createCategory(
- Common.UIString('Timer'), ['setTimeout', 'clearTimeout', 'setInterval', 'clearInterval', 'timerFired'], true);
+ Common.UIString('Timer'),
+ ['setTimeout', 'clearTimeout', 'setInterval', 'clearInterval', 'setTimeout.callback', 'setInterval.callback'],
+ true);
this._createCategory(Common.UIString('Touch'), ['touchstart', 'touchmove', 'touchend', 'touchcancel']);
this._createCategory(Common.UIString('Window'), ['DOMWindow.close'], true);
this._createCategory(
@@ -86,7 +88,8 @@ Sources.EventListenerBreakpointsSidebarPane = class extends UI.VBox {
static eventNameForUI(eventName, auxData) {
if (!Sources.EventListenerBreakpointsSidebarPane._eventNamesForUI) {
Sources.EventListenerBreakpointsSidebarPane._eventNamesForUI = {
- 'instrumentation:timerFired': Common.UIString('Timer Fired'),
+ 'instrumentation:setTimeout.callback': Common.UIString('setTimeout fired'),
+ 'instrumentation:setInterval.callback': Common.UIString('setInterval fired'),
'instrumentation:scriptFirstStatement': Common.UIString('Script First Statement'),
'instrumentation:scriptBlockedByCSP': Common.UIString('Script Blocked by Content Security Policy'),
'instrumentation:requestAnimationFrame': Common.UIString('Request Animation Frame'),

Powered by Google App Engine
This is Rietveld 408576698