5 #ifndef V8_INSPECTOR_V8_CONSOLE_H_ 6 #define V8_INSPECTOR_V8_CONSOLE_H_ 8 #include "src/base/macros.h" 10 #include "include/v8.h" 11 #include "src/debug/interface-types.h" 15 class InspectedContext;
16 class V8InspectorImpl;
35 static void accessorGetterCallback(
98 template <
void (V8Console::*func)(const v8::FunctionCallbackInfo<v8::Value>&)>
102 (console->*func)(info);
104 using CommandLineAPIData = std::pair<V8Console*, int>;
105 template <
void (V8Console::*func)(const v8::FunctionCallbackInfo<v8::Value>&,
108 CommandLineAPIData* data =
static_cast<CommandLineAPIData*
>(
110 (data->first->*func)(info, data->second);
115 CommandLineAPIData* data =
static_cast<CommandLineAPIData*
>(
144 int sessionId,
unsigned num);
147 inspectedObject(info, sessionId, 0);
151 inspectedObject(info, sessionId, 1);
155 inspectedObject(info, sessionId, 2);
159 inspectedObject(info, sessionId, 3);
163 inspectedObject(info, sessionId, 4);
168 V8InspectorImpl* m_inspector;
173 #endif // V8_INSPECTOR_V8_CONSOLE_H_
V8_INLINE Local< Value > Data() const