| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class ScriptExecutionContext; | 43 class ScriptExecutionContext; |
| 44 | 44 |
| 45 class PageConsole { | 45 class PageConsole { |
| 46 public: | 46 public: |
| 47 static PassOwnPtr<PageConsole> create(Page* page) { return adoptPtr(new Page
Console(page)); } | 47 static PassOwnPtr<PageConsole> create(Page* page) { return adoptPtr(new Page
Console(page)); } |
| 48 virtual ~PageConsole(); | 48 virtual ~PageConsole(); |
| 49 | 49 |
| 50 void addMessage(MessageSource, MessageLevel, const String& message, const St
ring& sourceURL, unsigned lineNumber, unsigned columnNumber = 0, PassRefPtr<Scri
ptCallStack> = 0, ScriptState* = 0, unsigned long requestIdentifier = 0); | 50 void addMessage(MessageSource, MessageLevel, const String& message, const St
ring& sourceURL, unsigned lineNumber, unsigned columnNumber = 0, PassRefPtr<Scri
ptCallStack> = 0, ScriptState* = 0, unsigned long requestIdentifier = 0); |
| 51 void addMessage(MessageSource, MessageLevel, const String& message, PassRefP
tr<ScriptCallStack>); | 51 void addMessage(MessageSource, MessageLevel, const String& message, PassRefP
tr<ScriptCallStack>); |
| 52 void addMessage(MessageSource, MessageLevel, const String& message, unsigned
long requestIdentifier = 0, Document* = 0); | 52 void addMessage(MessageSource, MessageLevel, const String& message, unsigned
long requestIdentifier = 0, Document* = 0); |
| 53 static String formatStackTraceString(const String& originalMessage, PassRefP
tr<ScriptCallStack>); |
| 53 | 54 |
| 54 static void mute(); | 55 static void mute(); |
| 55 static void unmute(); | 56 static void unmute(); |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 PageConsole(Page*); | 59 PageConsole(Page*); |
| 59 | 60 |
| 60 Page* page() { return m_page; }; | 61 Page* page() { return m_page; }; |
| 61 | 62 |
| 62 Page* m_page; | 63 Page* m_page; |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace WebCore | 66 } // namespace WebCore |
| 66 | 67 |
| 67 #endif // PageConsole_h | 68 #endif // PageConsole_h |
| OLD | NEW |