Index: include/v8-inspector.h |
diff --git a/include/v8-inspector.h b/include/v8-inspector.h |
index d0925adba0460c0812245eff99e50401572f73ed..adb097f9c97d5752cac57d6940a00fcd0b8448b7 100644 |
--- a/include/v8-inspector.h |
+++ b/include/v8-inspector.h |
@@ -189,10 +189,16 @@ class V8_EXPORT V8InspectorClient { |
virtual void installAdditionalCommandLineAPI(v8::Local<v8::Context>, |
v8::Local<v8::Object>) {} |
+ // Deprecated, to be replaced with v8::Isolate::MessageErrorLevel version. |
virtual void consoleAPIMessage(int contextGroupId, V8ConsoleAPIType, |
const StringView& message, |
const StringView& url, unsigned lineNumber, |
unsigned columnNumber, V8StackTrace*) {} |
+ virtual void consoleAPIMessage(int contextGroupId, |
+ v8::Isolate::MessageErrorLevel level, |
+ const StringView& message, |
+ const StringView& url, unsigned lineNumber, |
+ unsigned columnNumber, V8StackTrace*) {} |
virtual v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, |
v8::Local<v8::Context>) { |
return v8::MaybeLocal<v8::Value>(); |
@@ -201,6 +207,7 @@ class V8_EXPORT V8InspectorClient { |
virtual void consoleTime(const StringView& title) {} |
virtual void consoleTimeEnd(const StringView& title) {} |
virtual void consoleTimeStamp(const StringView& title) {} |
+ virtual void consoleClear(int contextGroupId) {} |
virtual double currentTimeMS() { return 0; } |
typedef void (*TimerCallback)(void*); |
virtual void startRepeatingTimer(double, TimerCallback, void* data) {} |