| OLD | NEW |
| 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 "platform/inspector_protocol/InspectorProtocol.h" | 8 #include "platform/inspector_protocol/InspectorProtocol.h" |
| 9 #include <v8.h> | 9 #include <v8.h> |
| 10 | 10 |
| 11 namespace blink { | 11 namespace v8_inspector { |
| 12 | 12 |
| 13 class InspectedContext; | 13 class InspectedContext; |
| 14 | 14 |
| 15 namespace protocol = blink::protocol; |
| 16 |
| 15 // Console API | 17 // Console API |
| 16 // https://console.spec.whatwg.org/#console-interface | 18 // https://console.spec.whatwg.org/#console-interface |
| 17 class V8Console { | 19 class V8Console { |
| 18 public: | 20 public: |
| 19 static v8::Local<v8::Object> createConsole(InspectedContext*, bool hasMemory
Attribute); | 21 static v8::Local<v8::Object> createConsole(InspectedContext*, bool hasMemory
Attribute); |
| 20 static void clearInspectedContextIfNeeded(v8::Local<v8::Context>, v8::Local<
v8::Object> console); | 22 static void clearInspectedContextIfNeeded(v8::Local<v8::Context>, v8::Local<
v8::Object> console); |
| 21 static v8::Local<v8::Object> createCommandLineAPI(InspectedContext*); | 23 static v8::Local<v8::Object> createCommandLineAPI(InspectedContext*); |
| 22 | 24 |
| 23 class CommandLineAPIScope { | 25 class CommandLineAPIScope { |
| 24 PROTOCOL_DISALLOW_COPY(CommandLineAPIScope); | 26 PROTOCOL_DISALLOW_COPY(CommandLineAPIScope); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 static void inspectCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 79 static void inspectCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 78 static void copyCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 80 static void copyCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 79 static void inspectedObject(const v8::FunctionCallbackInfo<v8::Value>&, unsi
gned num); | 81 static void inspectedObject(const v8::FunctionCallbackInfo<v8::Value>&, unsi
gned num); |
| 80 static void inspectedObject0(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 0); } | 82 static void inspectedObject0(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 0); } |
| 81 static void inspectedObject1(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 1); } | 83 static void inspectedObject1(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 1); } |
| 82 static void inspectedObject2(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 2); } | 84 static void inspectedObject2(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 2); } |
| 83 static void inspectedObject3(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 3); } | 85 static void inspectedObject3(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 3); } |
| 84 static void inspectedObject4(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 4); } | 86 static void inspectedObject4(const v8::FunctionCallbackInfo<v8::Value>& info
) { inspectedObject(info, 4); } |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace blink | 89 } // namespace v8_inspector |
| 88 | 90 |
| 89 #endif // V8Console_h | 91 #endif // V8Console_h |
| OLD | NEW |