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/page/Console.h" | 30 #include "core/page/Console.h" |
31 | 31 |
32 #include <stdio.h> | 32 #include <stdio.h> |
33 #include "bindings/v8/ScriptCallStackFactory.h" | 33 #include "bindings/v8/ScriptCallStackFactory.h" |
34 #include "bindings/v8/ScriptProfiler.h" | 34 #include "bindings/v8/ScriptProfiler.h" |
35 #include "bindings/v8/ScriptValue.h" | |
36 #include "core/dom/Document.h" | |
37 #include "core/dom/ScriptableDocumentParser.h" | |
38 #include "core/inspector/ConsoleAPITypes.h" | 35 #include "core/inspector/ConsoleAPITypes.h" |
39 #include "core/inspector/InspectorConsoleInstrumentation.h" | 36 #include "core/inspector/InspectorConsoleInstrumentation.h" |
40 #include "core/inspector/InspectorController.h" | |
41 #include "core/inspector/ScriptArguments.h" | 37 #include "core/inspector/ScriptArguments.h" |
42 #include "core/inspector/ScriptCallStack.h" | 38 #include "core/inspector/ScriptCallStack.h" |
43 #include "core/inspector/ScriptProfile.h" | 39 #include "core/inspector/ScriptProfile.h" |
44 #include "core/loader/FrameLoader.h" | |
45 #include "core/page/Chrome.h" | 40 #include "core/page/Chrome.h" |
46 #include "core/page/ChromeClient.h" | 41 #include "core/page/ChromeClient.h" |
47 #include "core/page/ConsoleTypes.h" | 42 #include "core/page/ConsoleTypes.h" |
48 #include "core/page/Frame.h" | 43 #include "core/page/Frame.h" |
49 #include "core/page/FrameTree.h" | |
50 #include "core/page/MemoryInfo.h" | 44 #include "core/page/MemoryInfo.h" |
51 #include "core/page/Page.h" | 45 #include "core/page/Page.h" |
52 #include "core/page/PageConsole.h" | |
53 #include "core/page/PageGroup.h" | |
54 #include "core/page/Settings.h" | |
55 #include <wtf/text/CString.h> | 46 #include <wtf/text/CString.h> |
56 #include <wtf/text/WTFString.h> | 47 #include <wtf/text/WTFString.h> |
57 #include <wtf/UnusedParam.h> | 48 #include <wtf/UnusedParam.h> |
58 | 49 |
59 #include "core/platform/chromium/TraceEvent.h" | 50 #include "core/platform/chromium/TraceEvent.h" |
60 | 51 |
61 namespace WebCore { | 52 namespace WebCore { |
62 | 53 |
63 Console::Console(Frame* frame) | 54 Console::Console(Frame* frame) |
64 : DOMWindowProperty(frame) | 55 : DOMWindowProperty(frame) |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 } | 233 } |
243 | 234 |
244 Page* Console::page() const | 235 Page* Console::page() const |
245 { | 236 { |
246 if (!m_frame) | 237 if (!m_frame) |
247 return 0; | 238 return 0; |
248 return m_frame->page(); | 239 return m_frame->page(); |
249 } | 240 } |
250 | 241 |
251 } // namespace WebCore | 242 } // namespace WebCore |
OLD | NEW |