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

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

Issue 1917733002: [DevTools] Move part of CommandLineAPI to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8Console_h 5 #ifndef V8Console_h
6 #define V8Console_h 6 #define V8Console_h
7 7
8 #include <v8.h> 8 #include <v8.h>
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class InspectedContext; 12 class InspectedContext;
13 13
14 // Console API 14 // Console API
15 // https://console.spec.whatwg.org/#console-interface 15 // https://console.spec.whatwg.org/#console-interface
16 class V8Console { 16 class V8Console {
17 public: 17 public:
18 static v8::MaybeLocal<v8::Object> create(v8::Local<v8::Context>, InspectedCo ntext*, bool hasMemoryAttribute); 18 static v8::MaybeLocal<v8::Object> createConsole(InspectedContext*, bool hasM emoryAttribute);
19 static v8::Local<v8::Object> createCommandLineAPI(InspectedContext*);
19 static void clearInspectedContextIfNeeded(v8::Local<v8::Context>, v8::Local< v8::Object> console); 20 static void clearInspectedContextIfNeeded(v8::Local<v8::Context>, v8::Local< v8::Object> console);
20 21
22 private:
21 static void debugCallback(const v8::FunctionCallbackInfo<v8::Value>&); 23 static void debugCallback(const v8::FunctionCallbackInfo<v8::Value>&);
22 static void errorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 24 static void errorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
23 static void infoCallback(const v8::FunctionCallbackInfo<v8::Value>&); 25 static void infoCallback(const v8::FunctionCallbackInfo<v8::Value>&);
24 static void logCallback(const v8::FunctionCallbackInfo<v8::Value>&); 26 static void logCallback(const v8::FunctionCallbackInfo<v8::Value>&);
25 static void warnCallback(const v8::FunctionCallbackInfo<v8::Value>&); 27 static void warnCallback(const v8::FunctionCallbackInfo<v8::Value>&);
26 static void dirCallback(const v8::FunctionCallbackInfo<v8::Value>&); 28 static void dirCallback(const v8::FunctionCallbackInfo<v8::Value>&);
27 static void dirxmlCallback(const v8::FunctionCallbackInfo<v8::Value>&); 29 static void dirxmlCallback(const v8::FunctionCallbackInfo<v8::Value>&);
28 static void tableCallback(const v8::FunctionCallbackInfo<v8::Value>&); 30 static void tableCallback(const v8::FunctionCallbackInfo<v8::Value>&);
29 static void traceCallback(const v8::FunctionCallbackInfo<v8::Value>&); 31 static void traceCallback(const v8::FunctionCallbackInfo<v8::Value>&);
30 static void groupCallback(const v8::FunctionCallbackInfo<v8::Value>&); 32 static void groupCallback(const v8::FunctionCallbackInfo<v8::Value>&);
31 static void groupCollapsedCallback(const v8::FunctionCallbackInfo<v8::Value> &); 33 static void groupCollapsedCallback(const v8::FunctionCallbackInfo<v8::Value> &);
32 static void groupEndCallback(const v8::FunctionCallbackInfo<v8::Value>&); 34 static void groupEndCallback(const v8::FunctionCallbackInfo<v8::Value>&);
33 static void clearCallback(const v8::FunctionCallbackInfo<v8::Value>&); 35 static void clearCallback(const v8::FunctionCallbackInfo<v8::Value>&);
34 static void countCallback(const v8::FunctionCallbackInfo<v8::Value>&); 36 static void countCallback(const v8::FunctionCallbackInfo<v8::Value>&);
35 static void assertCallback(const v8::FunctionCallbackInfo<v8::Value>&); 37 static void assertCallback(const v8::FunctionCallbackInfo<v8::Value>&);
36 static void markTimelineCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 38 static void markTimelineCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
37 static void profileCallback(const v8::FunctionCallbackInfo<v8::Value>&); 39 static void profileCallback(const v8::FunctionCallbackInfo<v8::Value>&);
38 static void profileEndCallback(const v8::FunctionCallbackInfo<v8::Value>&); 40 static void profileEndCallback(const v8::FunctionCallbackInfo<v8::Value>&);
39 static void timelineCallback(const v8::FunctionCallbackInfo<v8::Value>&); 41 static void timelineCallback(const v8::FunctionCallbackInfo<v8::Value>&);
40 static void timelineEndCallback(const v8::FunctionCallbackInfo<v8::Value>&); 42 static void timelineEndCallback(const v8::FunctionCallbackInfo<v8::Value>&);
41 static void timeCallback(const v8::FunctionCallbackInfo<v8::Value>&); 43 static void timeCallback(const v8::FunctionCallbackInfo<v8::Value>&);
42 static void timeEndCallback(const v8::FunctionCallbackInfo<v8::Value>&); 44 static void timeEndCallback(const v8::FunctionCallbackInfo<v8::Value>&);
43 static void timeStampCallback(const v8::FunctionCallbackInfo<v8::Value>&); 45 static void timeStampCallback(const v8::FunctionCallbackInfo<v8::Value>&);
44 // TODO(philipj): There is no spec for the Memory Info API, see blink-dev: 46 // TODO(philipj): There is no spec for the Memory Info API, see blink-dev:
45 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ z71NmPwJ 47 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ z71NmPwJ
46 static void memoryGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 48 static void memoryGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
47 static void memorySetterCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 49 static void memorySetterCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
50
51 // CommandLineAPI
52 static void keysCallback(const v8::FunctionCallbackInfo<v8::Value>&);
53 static void valuesCallback(const v8::FunctionCallbackInfo<v8::Value>&);
54 static void debugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& );
55 static void undebugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value >&);
56 static void monitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Value >&);
57 static void unmonitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Val ue>&);
58 static void lastEvaluationResultCallback(const v8::FunctionCallbackInfo<v8:: Value>&);
48 }; 59 };
49 60
50 } // namespace blink 61 } // namespace blink
51 62
52 #endif // V8Console_h 63 #endif // V8Console_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698