OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project 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 V8_INSPECTOR_V8CONSOLE_H_ | 5 #ifndef V8_INSPECTOR_V8CONSOLE_H_ |
6 #define V8_INSPECTOR_V8CONSOLE_H_ | 6 #define V8_INSPECTOR_V8CONSOLE_H_ |
7 | 7 |
8 #include "src/base/macros.h" | 8 #include "src/base/macros.h" |
9 | 9 |
10 #include "include/v8.h" | 10 #include "include/v8.h" |
11 | 11 |
12 namespace v8_inspector { | 12 namespace v8_inspector { |
13 | 13 |
14 class InspectedContext; | 14 class InspectedContext; |
| 15 class V8InspectorImpl; |
15 | 16 |
16 // Console API | 17 // Console API |
17 // https://console.spec.whatwg.org/#console-interface | 18 // https://console.spec.whatwg.org/#console-interface |
18 class V8Console { | 19 class V8Console { |
19 public: | 20 public: |
20 static v8::Local<v8::Object> createConsole(InspectedContext*, | 21 static v8::Local<v8::Object> createConsole(InspectedContext*); |
21 bool hasMemoryAttribute); | |
22 static v8::Local<v8::Object> createCommandLineAPI(InspectedContext*); | 22 static v8::Local<v8::Object> createCommandLineAPI(InspectedContext*); |
| 23 static void installMemoryGetter(V8InspectorImpl* inspector, |
| 24 v8::Local<v8::Context> context, |
| 25 v8::Local<v8::Object> console); |
23 | 26 |
24 class CommandLineAPIScope { | 27 class CommandLineAPIScope { |
25 public: | 28 public: |
26 CommandLineAPIScope(v8::Local<v8::Context>, | 29 CommandLineAPIScope(v8::Local<v8::Context>, |
27 v8::Local<v8::Object> commandLineAPI, | 30 v8::Local<v8::Object> commandLineAPI, |
28 v8::Local<v8::Object> global); | 31 v8::Local<v8::Object> global); |
29 ~CommandLineAPIScope(); | 32 ~CommandLineAPIScope(); |
30 | 33 |
31 private: | 34 private: |
32 static void accessorGetterCallback( | 35 static void accessorGetterCallback( |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 111 } |
109 static void inspectedObject4( | 112 static void inspectedObject4( |
110 const v8::FunctionCallbackInfo<v8::Value>& info) { | 113 const v8::FunctionCallbackInfo<v8::Value>& info) { |
111 inspectedObject(info, 4); | 114 inspectedObject(info, 4); |
112 } | 115 } |
113 }; | 116 }; |
114 | 117 |
115 } // namespace v8_inspector | 118 } // namespace v8_inspector |
116 | 119 |
117 #endif // V8_INSPECTOR_V8CONSOLE_H_ | 120 #endif // V8_INSPECTOR_V8CONSOLE_H_ |
OLD | NEW |