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

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

Issue 16143005: monitor console command implemented. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed custom bindings. Created 7 years, 6 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return String(); 136 return String();
137 } 137 }
138 138
139 String InjectedScriptHost::storageIdImpl(Storage* storage) 139 String InjectedScriptHost::storageIdImpl(Storage* storage)
140 { 140 {
141 if (m_domStorageAgent) 141 if (m_domStorageAgent)
142 return m_domStorageAgent->storageId(storage); 142 return m_domStorageAgent->storageId(storage);
143 return String(); 143 return String();
144 } 144 }
145 145
146 void InjectedScriptHost::setBreakpoint(const String& scriptId, int lineNumber, i nt columnNumber) 146 static InspectorDebuggerAgent::BreakpointSource parseBreakpointSource(const Stri ng& source)
147 { 147 {
148 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspector DebuggerAgent::DebugCommandBreakpointSource); 148 if (source == "debug")
149 return InspectorDebuggerAgent::DebugCommandBreakpointSource;
150 if (source == "monitor")
151 return InspectorDebuggerAgent::MonitorCommandBreakpointSource;
152 ASSERT(false);
153 return InspectorDebuggerAgent::UserBreakpointSource;
149 } 154 }
150 155
151 void InjectedScriptHost::removeBreakpoint(const String& scriptId, int lineNumber , int columnNumber) 156 void InjectedScriptHost::setBreakpoint(const String& scriptId, int lineNumber, i nt columnNumber, const String& source, const String& condition)
152 { 157 {
153 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Inspec torDebuggerAgent::DebugCommandBreakpointSource); 158 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, parseBrea kpointSource(source), condition);
159 }
160
161 void InjectedScriptHost::removeBreakpoint(const String& scriptId, int lineNumber , int columnNumber, const String& source)
162 {
163 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, parseB reakpointSource(source));
154 } 164 }
155 165
156 } // namespace WebCore 166 } // namespace WebCore
157 167
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698