| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual void clearMessages(ErrorString*) OVERRIDE; | 71 virtual void clearMessages(ErrorString*) OVERRIDE; |
| 72 bool enabled() { return m_enabled; } | 72 bool enabled() { return m_enabled; } |
| 73 void reset(); | 73 void reset(); |
| 74 | 74 |
| 75 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; | 75 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; |
| 76 virtual void clearFrontend() OVERRIDE FINAL; | 76 virtual void clearFrontend() OVERRIDE FINAL; |
| 77 virtual void restore() OVERRIDE FINAL; | 77 virtual void restore() OVERRIDE FINAL; |
| 78 | 78 |
| 79 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, ScriptState*, ScriptArguments*, unsigned long requestIdentifier =
0); | 79 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, ScriptState*, ScriptArguments*, unsigned long requestIdentifier =
0); |
| 80 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, const String& scriptId, unsigned lineNumber, unsigned columnNumber
= 0, ScriptState* = 0, unsigned long requestIdentifier = 0); | 80 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, const String& scriptId, unsigned lineNumber, unsigned columnNumber
= 0, ScriptState* = 0, unsigned long requestIdentifier = 0); |
| 81 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, const String& scriptId, unsigned lineNumber, unsigned columnNumber
, ScriptCallStack*, ScriptState*, unsigned long requestIdentifier = 0); |
| 81 | 82 |
| 82 // FIXME: Remove once we no longer generate stacks outside of Inspector. | 83 // FIXME: Remove once we no longer generate stacks outside of Inspector. |
| 83 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, ScriptCallStack*, unsigned long requestIdentifier = 0); | 84 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, ScriptCallStack*, unsigned long requestIdentifier = 0); |
| 84 | 85 |
| 85 Vector<unsigned> consoleMessageArgumentCounts(); | 86 Vector<unsigned> consoleMessageArgumentCounts(); |
| 86 | 87 |
| 87 void consoleTime(ExecutionContext*, const String& title); | 88 void consoleTime(ExecutionContext*, const String& title); |
| 88 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*); | 89 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*); |
| 89 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); | 90 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); |
| 90 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState*
); | 91 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState*
); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 117 HashMap<String, double> m_times; | 118 HashMap<String, double> m_times; |
| 118 bool m_enabled; | 119 bool m_enabled; |
| 119 private: | 120 private: |
| 120 static int s_enabledAgentCount; | 121 static int s_enabledAgentCount; |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace WebCore | 124 } // namespace WebCore |
| 124 | 125 |
| 125 | 126 |
| 126 #endif // !defined(InspectorConsoleAgent_h) | 127 #endif // !defined(InspectorConsoleAgent_h) |
| OLD | NEW |