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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 int muteCount = 0; | 49 int muteCount = 0; |
50 | 50 |
51 } | 51 } |
52 | 52 |
53 PageConsole::PageConsole(Page* page) | 53 PageConsole::PageConsole(Page* page) |
54 : m_page(page) | 54 : m_page(page) |
55 { | 55 { |
56 } | 56 } |
57 | 57 |
58 PageConsole::~PageConsole() { } | |
59 | |
60 void PageConsole::addMessage(MessageSource source, MessageLevel level, const Str
ing& message) | 58 void PageConsole::addMessage(MessageSource source, MessageLevel level, const Str
ing& message) |
61 { | 59 { |
62 addMessage(source, level, message, String(), 0, 0, 0, 0, 0); | 60 addMessage(source, level, message, String(), 0, 0, 0, 0, 0); |
63 } | 61 } |
64 | 62 |
65 void PageConsole::addMessage(MessageSource source, MessageLevel level, const Str
ing& message, PassRefPtr<ScriptCallStack> callStack) | 63 void PageConsole::addMessage(MessageSource source, MessageLevel level, const Str
ing& message, PassRefPtr<ScriptCallStack> callStack) |
66 { | 64 { |
67 addMessage(source, level, message, String(), 0, 0, callStack, 0); | 65 addMessage(source, level, message, String(), 0, 0, callStack, 0); |
68 } | 66 } |
69 | 67 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 muteCount++; | 116 muteCount++; |
119 } | 117 } |
120 | 118 |
121 void PageConsole::unmute() | 119 void PageConsole::unmute() |
122 { | 120 { |
123 ASSERT(muteCount > 0); | 121 ASSERT(muteCount > 0); |
124 muteCount--; | 122 muteCount--; |
125 } | 123 } |
126 | 124 |
127 } // namespace WebCore | 125 } // namespace WebCore |
OLD | NEW |