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

Side by Side Diff: Source/core/inspector/InspectorDOMDebuggerAgent.h

Issue 114033002: DevTools: Capture async stacks for event listeners. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "core/inspector/InspectorBaseAgent.h" 35 #include "core/inspector/InspectorBaseAgent.h"
36 #include "core/inspector/InspectorDebuggerAgent.h" 36 #include "core/inspector/InspectorDebuggerAgent.h"
37 #include "wtf/HashMap.h" 37 #include "wtf/HashMap.h"
38 #include "wtf/PassOwnPtr.h" 38 #include "wtf/PassOwnPtr.h"
39 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 class Document; 43 class Document;
44 class Element; 44 class Element;
45 class Event; 45 class EventListener;
46 class EventTarget;
46 class InspectorDOMAgent; 47 class InspectorDOMAgent;
47 class InspectorDebuggerAgent; 48 class InspectorDebuggerAgent;
48 class InspectorFrontend; 49 class InspectorFrontend;
49 class InstrumentingAgents; 50 class InstrumentingAgents;
50 class JSONObject; 51 class JSONObject;
51 class Node; 52 class Node;
52 53
53 typedef String ErrorString; 54 typedef String ErrorString;
54 55
55 class InspectorDOMDebuggerAgent : public InspectorBaseAgent<InspectorDOMDebugger Agent>, public InspectorDebuggerAgent::Listener, public InspectorBackendDispatch er::DOMDebuggerCommandHandler { 56 class InspectorDOMDebuggerAgent : public InspectorBaseAgent<InspectorDOMDebugger Agent>, public InspectorDebuggerAgent::Listener, public InspectorBackendDispatch er::DOMDebuggerCommandHandler {
(...skipping 20 matching lines...) Expand all
76 void willRemoveDOMNode(Node*); 77 void willRemoveDOMNode(Node*);
77 void didRemoveDOMNode(Node*); 78 void didRemoveDOMNode(Node*);
78 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&); 79 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&);
79 void willSendXMLHttpRequest(const String& url); 80 void willSendXMLHttpRequest(const String& url);
80 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot); 81 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot);
81 void didRemoveTimer(ExecutionContext*, int timerId); 82 void didRemoveTimer(ExecutionContext*, int timerId);
82 void willFireTimer(ExecutionContext*, int timerId); 83 void willFireTimer(ExecutionContext*, int timerId);
83 void didRequestAnimationFrame(Document*, int callbackId); 84 void didRequestAnimationFrame(Document*, int callbackId);
84 void didCancelAnimationFrame(Document*, int callbackId); 85 void didCancelAnimationFrame(Document*, int callbackId);
85 void willFireAnimationFrame(Document*, int callbackId); 86 void willFireAnimationFrame(Document*, int callbackId);
86 void willHandleEvent(Event*); 87 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe ner*, bool useCapture);
87 void didFireWebGLError(const String& errorName); 88 void didFireWebGLError(const String& errorName);
88 void didFireWebGLWarning(); 89 void didFireWebGLWarning();
89 void didFireWebGLErrorOrWarning(const String& message); 90 void didFireWebGLErrorOrWarning(const String& message);
90 91
91 void didProcessTask(); 92 void didProcessTask();
92 93
93 virtual void clearFrontend(); 94 virtual void clearFrontend();
94 virtual void discardAgent(); 95 virtual void discardAgent();
95 96
96 private: 97 private:
(...skipping 21 matching lines...) Expand all
118 InspectorDOMAgent* m_domAgent; 119 InspectorDOMAgent* m_domAgent;
119 InspectorDebuggerAgent* m_debuggerAgent; 120 InspectorDebuggerAgent* m_debuggerAgent;
120 HashMap<Node*, uint32_t> m_domBreakpoints; 121 HashMap<Node*, uint32_t> m_domBreakpoints;
121 bool m_pauseInNextEventListener; 122 bool m_pauseInNextEventListener;
122 }; 123 };
123 124
124 } // namespace WebCore 125 } // namespace WebCore
125 126
126 127
127 #endif // !defined(InspectorDOMDebuggerAgent_h) 128 #endif // !defined(InspectorDOMDebuggerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/AsyncCallStackTracker.cpp ('k') | Source/core/inspector/InspectorDOMDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698