OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 14 matching lines...) Expand all Loading... |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/frame/Console.h" | 30 #include "core/frame/Console.h" |
31 | 31 |
32 #include "bindings/v8/ScriptCallStackFactory.h" | 32 #include "bindings/v8/ScriptCallStackFactory.h" |
33 #include "bindings/v8/ScriptProfiler.h" | 33 #include "bindings/v8/ScriptProfiler.h" |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/inspector/ConsoleAPITypes.h" | |
36 #include "core/inspector/InspectorConsoleInstrumentation.h" | 35 #include "core/inspector/InspectorConsoleInstrumentation.h" |
37 #include "core/inspector/ScriptArguments.h" | 36 #include "core/inspector/ScriptArguments.h" |
38 #include "core/inspector/ScriptCallStack.h" | |
39 #include "core/inspector/ScriptProfile.h" | 37 #include "core/inspector/ScriptProfile.h" |
40 #include "core/frame/ConsoleTypes.h" | |
41 #include "platform/TraceEvent.h" | 38 #include "platform/TraceEvent.h" |
42 #include "wtf/text/CString.h" | 39 #include "wtf/text/CString.h" |
43 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
44 | 41 |
45 namespace WebCore { | 42 namespace WebCore { |
46 | 43 |
47 ConsoleBase::~ConsoleBase() | 44 ConsoleBase::~ConsoleBase() |
48 { | 45 { |
49 } | 46 } |
50 | 47 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 RefPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(stackSize)
); | 203 RefPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(stackSize)
); |
207 | 204 |
208 String message; | 205 String message; |
209 bool gotStringMessage = arguments->getFirstArgumentAsString(message); | 206 bool gotStringMessage = arguments->getFirstArgumentAsString(message); |
210 InspectorInstrumentation::addMessageToConsole(context(), ConsoleAPIMessageSo
urce, type, level, message, state, arguments); | 207 InspectorInstrumentation::addMessageToConsole(context(), ConsoleAPIMessageSo
urce, type, level, message, state, arguments); |
211 if (gotStringMessage) | 208 if (gotStringMessage) |
212 reportMessageToClient(level, message, callStack); | 209 reportMessageToClient(level, message, callStack); |
213 } | 210 } |
214 | 211 |
215 } // namespace WebCore | 212 } // namespace WebCore |
OLD | NEW |