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

Side by Side Diff: Source/bindings/core/dart/DartInspectorDebuggerAgent.h

Issue 1672443003: Fix devtools bugs Fix a spurious layout test failure (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Created 4 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010-2014 Google Inc. All rights reserved. 3 * Copyright (C) 2010-2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 MonitorCommandBreakpointSource 84 MonitorCommandBreakpointSource
85 }; 85 };
86 explicit DartInspectorDebuggerAgent(DartInjectedScriptManager*, InspectorDeb uggerAgent*, InspectorPageAgent*); 86 explicit DartInspectorDebuggerAgent(DartInjectedScriptManager*, InspectorDeb uggerAgent*, InspectorPageAgent*);
87 87
88 static const char backtraceObjectGroup[]; 88 static const char backtraceObjectGroup[];
89 89
90 ~DartInspectorDebuggerAgent(); 90 ~DartInspectorDebuggerAgent();
91 virtual void canSetScriptSource(ErrorString*, bool* result) { *result = true ; } 91 virtual void canSetScriptSource(ErrorString*, bool* result) { *result = true ; }
92 92
93 virtual void init(); 93 virtual void init();
94 virtual void setFrontend(InspectorFrontend*);
95 virtual void clearFrontend(); 94 virtual void clearFrontend();
96 virtual void restore(); 95 virtual void restore();
97 96
98 bool isPaused(); 97 bool isPaused();
99 bool runningNestedMessageLoop(); 98 bool runningNestedMessageLoop();
100 99
101 // Part of the protocol. 100 // Part of the protocol.
102 virtual void enable(ErrorString*); 101 virtual void enable(ErrorString*);
103 virtual void disable(ErrorString*); 102 virtual void disable(ErrorString*);
104 virtual void setBreakpointsActive(ErrorString*, bool active); 103 virtual void setBreakpointsActive(ErrorString*, bool active);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void removeBreakpoint(const String& breakpointId); 200 void removeBreakpoint(const String& breakpointId);
202 void clear(); 201 void clear();
203 bool assertPaused(ErrorString*); 202 bool assertPaused(ErrorString*);
204 void clearBreakDetails(); 203 void clearBreakDetails();
205 204
206 String sourceMapURLForScript(const Script&, CompileResult); 205 String sourceMapURLForScript(const Script&, CompileResult);
207 206
208 ScriptCallFrame topCallFrameSkipUnknownSources(); 207 ScriptCallFrame topCallFrameSkipUnknownSources();
209 208
210 InspectorState* state(); 209 InspectorState* state();
210 InspectorFrontend::Debugger* frontend();
211 211
212 typedef HashMap<String, Script> ScriptsMap; 212 typedef HashMap<String, Script> ScriptsMap;
213 typedef HashMap<String, Vector<String>> BreakpointIdToDebugServerBreakpointI dsMap; 213 typedef HashMap<String, Vector<String>> BreakpointIdToDebugServerBreakpointI dsMap;
214 typedef HashMap<String, std::pair<String, BreakpointSource>> DebugServerBrea kpointToBreakpointIdAndSourceMap; 214 typedef HashMap<String, std::pair<String, BreakpointSource>> DebugServerBrea kpointToBreakpointIdAndSourceMap;
215 215
216 DartInjectedScriptManager* m_injectedScriptManager; 216 DartInjectedScriptManager* m_injectedScriptManager;
217 InspectorFrontend::Debugger* m_frontend;
218 RefPtr<DartScriptState> m_pausedScriptState; 217 RefPtr<DartScriptState> m_pausedScriptState;
219 Dart_StackTrace m_currentCallStack; 218 Dart_StackTrace m_currentCallStack;
220 ScriptsMap m_scripts; 219 ScriptsMap m_scripts;
221 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo intIds; 220 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo intIds;
222 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; 221 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints;
223 String m_continueToLocationBreakpointId; 222 String m_continueToLocationBreakpointId;
224 InspectorFrontend::Debugger::Reason::Enum m_breakReason; 223 InspectorFrontend::Debugger::Reason::Enum m_breakReason;
225 RefPtr<JSONObject> m_breakAuxData; 224 RefPtr<JSONObject> m_breakAuxData;
226 bool m_javaScriptPauseScheduled; 225 bool m_javaScriptPauseScheduled;
227 bool m_debuggerStepScheduled; 226 bool m_debuggerStepScheduled;
228 bool m_steppingFromFramework; 227 bool m_steppingFromFramework;
229 bool m_pausingOnNativeEvent; 228 bool m_pausingOnNativeEvent;
230 RawPtrWillBeMember<Listener> m_listener; 229 RawPtrWillBeMember<Listener> m_listener;
231 230
232 int m_skippedStepInCount; 231 int m_skippedStepInCount;
233 int m_minFrameCountForSkip; 232 int m_minFrameCountForSkip;
234 bool m_skipAllPauses; 233 bool m_skipAllPauses;
235 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 234 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
236 InspectorDebuggerAgent* m_inspectorDebuggerAgent; 235 InspectorDebuggerAgent* m_inspectorDebuggerAgent;
237 InspectorPageAgent* m_pageAgent; 236 InspectorPageAgent* m_pageAgent;
238 }; 237 };
239 238
240 } // namespace blink 239 } // namespace blink
241 240
242 241
243 #endif // !defined(DartInspectorDebuggerAgent_h) 242 #endif // !defined(DartInspectorDebuggerAgent_h)
OLDNEW
« no previous file with comments | « LayoutTests/dart/microtask-queue-expected.txt ('k') | Source/bindings/core/dart/DartInspectorDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698