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

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

Issue 732593002: DevTools: Make StepInto work across script boundaries and Blink process tasks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added new test debugger-step-into-document-write.html Created 6 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 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot); 86 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot);
87 void didRemoveTimer(ExecutionContext*, int timerId); 87 void didRemoveTimer(ExecutionContext*, int timerId);
88 void willFireTimer(ExecutionContext*, int timerId); 88 void willFireTimer(ExecutionContext*, int timerId);
89 void didRequestAnimationFrame(Document*, int callbackId); 89 void didRequestAnimationFrame(Document*, int callbackId);
90 void didCancelAnimationFrame(Document*, int callbackId); 90 void didCancelAnimationFrame(Document*, int callbackId);
91 void willFireAnimationFrame(Document*, int callbackId); 91 void willFireAnimationFrame(Document*, int callbackId);
92 void willHandleEvent(EventTarget*, Event*, EventListener*, bool useCapture); 92 void willHandleEvent(EventTarget*, Event*, EventListener*, bool useCapture);
93 void didFireWebGLError(const String& errorName); 93 void didFireWebGLError(const String& errorName);
94 void didFireWebGLWarning(); 94 void didFireWebGLWarning();
95 void didFireWebGLErrorOrWarning(const String& message); 95 void didFireWebGLErrorOrWarning(const String& message);
96 void willExecuteCustomElementCallback(Element*);
97 void willCloseWindow(); 96 void willCloseWindow();
98 97
99 void didProcessTask();
100
101 virtual void clearFrontend() override; 98 virtual void clearFrontend() override;
102 virtual void discardAgent() override; 99 virtual void discardAgent() override;
103 100
104 private: 101 private:
105 InspectorDOMDebuggerAgent(InspectorDOMAgent*, InspectorDebuggerAgent*); 102 InspectorDOMDebuggerAgent(InspectorDOMAgent*, InspectorDebuggerAgent*);
106 103
107 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous); 104 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous);
108 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName); 105 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName);
109 106
110 // InspectorDOMAgent::Listener implementation. 107 // InspectorDOMAgent::Listener implementation.
111 virtual void domAgentWasEnabled() override; 108 virtual void domAgentWasEnabled() override;
112 virtual void domAgentWasDisabled() override; 109 virtual void domAgentWasDisabled() override;
113 110
114 // InspectorDebuggerAgent::Listener implementation. 111 // InspectorDebuggerAgent::Listener implementation.
115 virtual void debuggerWasEnabled() override; 112 virtual void debuggerWasEnabled() override;
116 virtual void debuggerWasDisabled() override; 113 virtual void debuggerWasDisabled() override;
117 virtual void stepInto() override;
118 virtual void didPause() override;
119 virtual bool canPauseOnPromiseEvent() override; 114 virtual bool canPauseOnPromiseEvent() override;
120 virtual void didCreatePromise() override; 115 virtual void didCreatePromise() override;
121 virtual void didResolvePromise() override; 116 virtual void didResolvePromise() override;
122 virtual void didRejectPromise() override; 117 virtual void didRejectPromise() override;
123 void disable(); 118 void disable();
124 119
125 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description); 120 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description);
126 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); 121 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set);
127 bool hasBreakpoint(Node*, int type); 122 bool hasBreakpoint(Node*, int type);
128 void setBreakpoint(ErrorString*, const String& eventName, const String* targ etName); 123 void setBreakpoint(ErrorString*, const String& eventName, const String* targ etName);
129 void removeBreakpoint(ErrorString*, const String& eventName, const String* t argetName); 124 void removeBreakpoint(ErrorString*, const String& eventName, const String* t argetName);
130 125
131 void clear(); 126 void clear();
132 127
133 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 128 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
134 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 129 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
135 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints; 130 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints;
136 bool m_pauseInNextEventListener;
137 }; 131 };
138 132
139 } // namespace blink 133 } // namespace blink
140 134
141 135
142 #endif // !defined(InspectorDOMDebuggerAgent_h) 136 #endif // !defined(InspectorDOMDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698