| 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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 "Console.h" | 30 #include "Console.h" |
| 31 | 31 |
| 32 #include <stdio.h> |
| 32 #include "Chrome.h" | 33 #include "Chrome.h" |
| 33 #include "ChromeClient.h" | 34 #include "ChromeClient.h" |
| 34 #include "ConsoleAPITypes.h" | 35 #include "ConsoleAPITypes.h" |
| 35 #include "ConsoleTypes.h" | 36 #include "ConsoleTypes.h" |
| 36 #include "Document.h" | 37 #include "Document.h" |
| 37 #include "Frame.h" | 38 #include "Frame.h" |
| 38 #include "FrameLoader.h" | 39 #include "FrameLoader.h" |
| 39 #include "FrameTree.h" | 40 #include "FrameTree.h" |
| 40 #include "InspectorConsoleInstrumentation.h" | 41 #include "InspectorConsoleInstrumentation.h" |
| 41 #include "InspectorController.h" | 42 #include "InspectorController.h" |
| 42 #include "MemoryInfo.h" | 43 #include "MemoryInfo.h" |
| 43 #include "Page.h" | 44 #include "Page.h" |
| 44 #include "PageConsole.h" | 45 #include "PageConsole.h" |
| 45 #include "PageGroup.h" | 46 #include "PageGroup.h" |
| 46 #include "ScriptArguments.h" | 47 #include "ScriptArguments.h" |
| 47 #include "ScriptCallStack.h" | 48 #include "ScriptCallStack.h" |
| 48 #include "ScriptCallStackFactory.h" | 49 #include "ScriptCallStackFactory.h" |
| 49 #include "ScriptProfile.h" | 50 #include "ScriptProfile.h" |
| 50 #include "ScriptProfiler.h" | 51 #include "ScriptProfiler.h" |
| 51 #include "ScriptValue.h" | 52 #include "ScriptValue.h" |
| 52 #include "ScriptableDocumentParser.h" | 53 #include "ScriptableDocumentParser.h" |
| 53 #include "Settings.h" | 54 #include "Settings.h" |
| 54 #include <stdio.h> | |
| 55 #include <wtf/UnusedParam.h> | |
| 56 #include <wtf/text/CString.h> | 55 #include <wtf/text/CString.h> |
| 57 #include <wtf/text/WTFString.h> | 56 #include <wtf/text/WTFString.h> |
| 57 #include <wtf/UnusedParam.h> |
| 58 | 58 |
| 59 #include "TraceEvent.h" | 59 #include "core/platform/chromium/TraceEvent.h" |
| 60 | 60 |
| 61 namespace WebCore { | 61 namespace WebCore { |
| 62 | 62 |
| 63 Console::Console(Frame* frame) | 63 Console::Console(Frame* frame) |
| 64 : DOMWindowProperty(frame) | 64 : DOMWindowProperty(frame) |
| 65 { | 65 { |
| 66 ScriptWrappable::init(this); | 66 ScriptWrappable::init(this); |
| 67 } | 67 } |
| 68 | 68 |
| 69 Console::~Console() | 69 Console::~Console() |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 } | 242 } |
| 243 | 243 |
| 244 Page* Console::page() const | 244 Page* Console::page() const |
| 245 { | 245 { |
| 246 if (!m_frame) | 246 if (!m_frame) |
| 247 return 0; | 247 return 0; |
| 248 return m_frame->page(); | 248 return m_frame->page(); |
| 249 } | 249 } |
| 250 | 250 |
| 251 } // namespace WebCore | 251 } // namespace WebCore |
| OLD | NEW |