Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/public/V8DebuggerClient.h

Issue 2199943004: [DevTools] Rename V8Debugger to V8Inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8DebuggerClient_h
6 #define V8DebuggerClient_h
7
8 #include "platform/inspector_protocol/Platform.h"
9 #include "platform/v8_inspector/public/V8ContextInfo.h"
10
11 #include <v8.h>
12
13 namespace blink {
14
15 class V8StackTrace;
16
17 enum class V8ConsoleAPIType { kClear, kDebug, kLog, kInfo, kWarning, kError };
18
19 class PLATFORM_EXPORT V8DebuggerClient {
20 public:
21 virtual ~V8DebuggerClient() { }
22 virtual void runMessageLoopOnPause(int contextGroupId) = 0;
23 virtual void quitMessageLoopOnPause() = 0;
24 virtual void muteWarningsAndDeprecations(int contextGroupId) = 0;
25 virtual void unmuteWarningsAndDeprecations(int contextGroupId) = 0;
26 virtual void beginUserGesture() = 0;
27 virtual void endUserGesture() = 0;
28 virtual String16 valueSubtype(v8::Local<v8::Value>) = 0;
29 virtual bool formatAccessorsAsProperties(v8::Local<v8::Value>) = 0;
30 virtual bool isExecutionAllowed() = 0;
31 virtual double currentTimeMS() = 0;
32 virtual v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupI d) = 0;
33 virtual bool isInspectableHeapObject(v8::Local<v8::Object>) = 0;
34 virtual void beginEnsureAllContextsInGroup(int contextGroupId) = 0;
35 virtual void endEnsureAllContextsInGroup(int contextGroupId) = 0;
36 // TODO(dgozman): this was added to support service worker shadow page. We s hould not connect at all.
37 virtual bool canExecuteScripts(int contextGroupId) = 0;
38
39 virtual void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Loc al<v8::Object>) = 0;
40
41 virtual void consoleTime(const String16& title) = 0;
42 virtual void consoleTimeEnd(const String16& title) = 0;
43 virtual void consoleTimeStamp(const String16& title) = 0;
44 virtual void consoleAPIMessage(int contextGroupId, V8ConsoleAPIType, const S tring16& message, const String16& url, unsigned lineNumber, unsigned columnNumbe r, V8StackTrace*) = 0;
45
46 virtual v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Con text>) = 0;
47
48 typedef void (*TimerCallback)(void*);
49 virtual void startRepeatingTimer(double, TimerCallback, void* data) = 0;
50 virtual void cancelTimer(void* data) = 0;
51 };
52
53 } // namespace blink
54
55
56 #endif // V8DebuggerClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698