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

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 60203007: DevTools: Fix disabling all pauses on reload. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. 3 * Copyright (C) 2010-2011 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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 m_frontend->resumed(); 1018 m_frontend->resumed();
1019 } 1019 }
1020 1020
1021 bool InspectorDebuggerAgent::canBreakProgram() 1021 bool InspectorDebuggerAgent::canBreakProgram()
1022 { 1022 {
1023 return scriptDebugServer().canBreakProgram(); 1023 return scriptDebugServer().canBreakProgram();
1024 } 1024 }
1025 1025
1026 void InspectorDebuggerAgent::breakProgram(InspectorFrontend::Debugger::Reason::E num breakReason, PassRefPtr<JSONObject> data) 1026 void InspectorDebuggerAgent::breakProgram(InspectorFrontend::Debugger::Reason::E num breakReason, PassRefPtr<JSONObject> data)
1027 { 1027 {
1028 if (m_skipAllPauses)
yurys 2013/11/08 06:38:26 Why shouldSkipBreakpointPause/shouldSkipStepPause
aandrey 2013/11/08 09:10:39 The shouldSkip* methods are listener callbacks cal
1029 return;
1028 m_breakReason = breakReason; 1030 m_breakReason = breakReason;
1029 m_breakAuxData = data; 1031 m_breakAuxData = data;
1030 scriptDebugServer().breakProgram(); 1032 scriptDebugServer().breakProgram();
1031 } 1033 }
1032 1034
1033 void InspectorDebuggerAgent::clear() 1035 void InspectorDebuggerAgent::clear()
1034 { 1036 {
1035 m_pausedScriptState = 0; 1037 m_pausedScriptState = 0;
1036 m_currentCallStack = ScriptValue(); 1038 m_currentCallStack = ScriptValue();
1037 m_scripts.clear(); 1039 m_scripts.clear();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 void InspectorDebuggerAgent::reset() 1075 void InspectorDebuggerAgent::reset()
1074 { 1076 {
1075 m_scripts.clear(); 1077 m_scripts.clear();
1076 m_breakpointIdToDebugServerBreakpointIds.clear(); 1078 m_breakpointIdToDebugServerBreakpointIds.clear();
1077 if (m_frontend) 1079 if (m_frontend)
1078 m_frontend->globalObjectCleared(); 1080 m_frontend->globalObjectCleared();
1079 } 1081 }
1080 1082
1081 } // namespace WebCore 1083 } // namespace WebCore
1082 1084
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698