| 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 #ifndef Console_h | 29 #ifndef Console_h |
| 30 #define Console_h | 30 #define Console_h |
| 31 | 31 |
| 32 #include "bindings/core/v8/ScriptWrappable.h" | |
| 33 #include "core/frame/ConsoleBase.h" | 32 #include "core/frame/ConsoleBase.h" |
| 34 #include "core/frame/DOMWindowProperty.h" | 33 #include "core/frame/DOMWindowProperty.h" |
| 35 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 36 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
| 37 #include "wtf/PassRefPtr.h" | 36 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
| 39 | 38 |
| 40 namespace WebCore { | 39 namespace WebCore { |
| 41 | 40 |
| 42 class LocalFrame; | 41 class LocalFrame; |
| 43 class MemoryInfo; | 42 class MemoryInfo; |
| 44 class Page; | 43 class Page; |
| 45 class ScriptArguments; | 44 class ScriptArguments; |
| 46 | 45 |
| 47 class Console FINAL : public ConsoleBase, public ScriptWrappable, public DOMWind
owProperty { | 46 class Console FINAL : public ConsoleBase, public DOMWindowProperty { |
| 48 public: | 47 public: |
| 49 static PassRefPtrWillBeRawPtr<Console> create(LocalFrame* frame) | 48 static PassRefPtrWillBeRawPtr<Console> create(LocalFrame* frame) |
| 50 { | 49 { |
| 51 return adoptRefWillBeNoop(new Console(frame)); | 50 return adoptRefWillBeNoop(new Console(frame)); |
| 52 } | 51 } |
| 53 virtual ~Console(); | 52 virtual ~Console(); |
| 54 | 53 |
| 55 PassRefPtrWillBeRawPtr<MemoryInfo> memory() const; | 54 PassRefPtrWillBeRawPtr<MemoryInfo> memory() const; |
| 56 | 55 |
| 57 virtual void trace(Visitor* visitor) OVERRIDE { ConsoleBase::trace(visitor);
} | 56 virtual void trace(Visitor* visitor) OVERRIDE { ConsoleBase::trace(visitor);
} |
| 58 | 57 |
| 59 protected: | 58 protected: |
| 60 virtual ExecutionContext* context() OVERRIDE; | 59 virtual ExecutionContext* context() OVERRIDE; |
| 61 virtual void reportMessageToClient(MessageLevel, const String& message, Pass
RefPtrWillBeRawPtr<ScriptCallStack>) OVERRIDE; | 60 virtual void reportMessageToClient(MessageLevel, const String& message, Pass
RefPtrWillBeRawPtr<ScriptCallStack>) OVERRIDE; |
| 62 | 61 |
| 63 private: | 62 private: |
| 64 explicit Console(LocalFrame*); | 63 explicit Console(LocalFrame*); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace WebCore | 66 } // namespace WebCore |
| 68 | 67 |
| 69 #endif // Console_h | 68 #endif // Console_h |
| OLD | NEW |