OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void info(ScriptState*, PassRefPtr<ScriptArguments>); | 54 void info(ScriptState*, PassRefPtr<ScriptArguments>); |
55 void log(ScriptState*, PassRefPtr<ScriptArguments>); | 55 void log(ScriptState*, PassRefPtr<ScriptArguments>); |
56 void clear(ScriptState*, PassRefPtr<ScriptArguments>); | 56 void clear(ScriptState*, PassRefPtr<ScriptArguments>); |
57 void warn(ScriptState*, PassRefPtr<ScriptArguments>); | 57 void warn(ScriptState*, PassRefPtr<ScriptArguments>); |
58 void dir(ScriptState*, PassRefPtr<ScriptArguments>); | 58 void dir(ScriptState*, PassRefPtr<ScriptArguments>); |
59 void dirxml(ScriptState*, PassRefPtr<ScriptArguments>); | 59 void dirxml(ScriptState*, PassRefPtr<ScriptArguments>); |
60 void table(ScriptState*, PassRefPtr<ScriptArguments>); | 60 void table(ScriptState*, PassRefPtr<ScriptArguments>); |
61 void trace(ScriptState*, PassRefPtr<ScriptArguments>); | 61 void trace(ScriptState*, PassRefPtr<ScriptArguments>); |
62 void assertCondition(ScriptState*, PassRefPtr<ScriptArguments>, bool conditi
on); | 62 void assertCondition(ScriptState*, PassRefPtr<ScriptArguments>, bool conditi
on); |
63 void count(ScriptState*, PassRefPtr<ScriptArguments>); | 63 void count(ScriptState*, PassRefPtr<ScriptArguments>); |
64 void markTimeline(PassRefPtr<ScriptArguments>); | 64 void markTimeline(const String&); |
65 void profile(ScriptState*, const String&); | 65 void profile(ScriptState*, const String&); |
66 void profileEnd(ScriptState*, const String&); | 66 void profileEnd(ScriptState*, const String&); |
67 void time(const String&); | 67 void time(const String&); |
68 void timeEnd(ScriptState*, const String&); | 68 void timeEnd(ScriptState*, const String&); |
69 void timeStamp(PassRefPtr<ScriptArguments>); | 69 void timeStamp(const String&); |
| 70 void timeline(ScriptState*, const String&); |
| 71 void timelineEnd(ScriptState*, const String&); |
70 void group(ScriptState*, PassRefPtr<ScriptArguments>); | 72 void group(ScriptState*, PassRefPtr<ScriptArguments>); |
71 void groupCollapsed(ScriptState*, PassRefPtr<ScriptArguments>); | 73 void groupCollapsed(ScriptState*, PassRefPtr<ScriptArguments>); |
72 void groupEnd(); | 74 void groupEnd(); |
73 | 75 |
74 protected: | 76 protected: |
75 virtual ~ConsoleBase(); | 77 virtual ~ConsoleBase(); |
76 virtual ScriptExecutionContext* context() = 0; | 78 virtual ScriptExecutionContext* context() = 0; |
77 virtual void reportMessageToClient(MessageLevel, const String& message, Pass
RefPtr<ScriptCallStack>) = 0; | 79 virtual void reportMessageToClient(MessageLevel, const String& message, Pass
RefPtr<ScriptCallStack>) = 0; |
78 virtual bool profilerEnabled() = 0; | 80 virtual bool profilerEnabled() = 0; |
79 | 81 |
80 private: | 82 private: |
81 virtual void refConsole() = 0; | 83 virtual void refConsole() = 0; |
82 virtual void derefConsole() = 0; | 84 virtual void derefConsole() = 0; |
83 | 85 |
84 void internalAddMessage(MessageType, MessageLevel, ScriptState*, PassRefPtr<
ScriptArguments>, bool acceptNoArguments = false, bool printTrace = false); | 86 void internalAddMessage(MessageType, MessageLevel, ScriptState*, PassRefPtr<
ScriptArguments>, bool acceptNoArguments = false, bool printTrace = false); |
85 }; | 87 }; |
86 | 88 |
87 } // namespace WebCore | 89 } // namespace WebCore |
88 | 90 |
89 #endif // ConsoleBase_h | 91 #endif // ConsoleBase_h |
OLD | NEW |