| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 #if PLATFORM(CHROMIUM) | 59 #if PLATFORM(CHROMIUM) |
| 60 #include "TraceEvent.h" | 60 #include "TraceEvent.h" |
| 61 #endif | 61 #endif |
| 62 | 62 |
| 63 namespace WebCore { | 63 namespace WebCore { |
| 64 | 64 |
| 65 Console::Console(Frame* frame) | 65 Console::Console(Frame* frame) |
| 66 : DOMWindowProperty(frame) | 66 : DOMWindowProperty(frame) |
| 67 { | 67 { |
| 68 ScriptWrappable::init(this); |
| 68 } | 69 } |
| 69 | 70 |
| 70 Console::~Console() | 71 Console::~Console() |
| 71 { | 72 { |
| 72 } | 73 } |
| 73 | 74 |
| 74 static void internalAddMessage(Page* page, MessageType type, MessageLevel level,
ScriptState* state, PassRefPtr<ScriptArguments> prpArguments, bool acceptNoArgu
ments = false, bool printTrace = false) | 75 static void internalAddMessage(Page* page, MessageType type, MessageLevel level,
ScriptState* state, PassRefPtr<ScriptArguments> prpArguments, bool acceptNoArgu
ments = false, bool printTrace = false) |
| 75 { | 76 { |
| 76 RefPtr<ScriptArguments> arguments = prpArguments; | 77 RefPtr<ScriptArguments> arguments = prpArguments; |
| 77 | 78 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 } | 251 } |
| 251 | 252 |
| 252 Page* Console::page() const | 253 Page* Console::page() const |
| 253 { | 254 { |
| 254 if (!m_frame) | 255 if (!m_frame) |
| 255 return 0; | 256 return 0; |
| 256 return m_frame->page(); | 257 return m_frame->page(); |
| 257 } | 258 } |
| 258 | 259 |
| 259 } // namespace WebCore | 260 } // namespace WebCore |
| OLD | NEW |