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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp

Issue 1921413002: [DevTools] Move inspect and copy to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
index 939c24bdde88c0ea2b0ab9c7b86e5834c5299222..bfaefe016730fc2f0a3aa5bab4199f94c00c5aaf 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8InjectedScriptHost.cpp
@@ -189,16 +189,6 @@ void V8InjectedScriptHost::getEventListenersCallback(const v8::FunctionCallbackI
v8SetReturnValue(info, result);
}
-void V8InjectedScriptHost::inspectCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- if (info.Length() < 2)
- return;
-
- v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext();
- InjectedScriptHost* host = V8InjectedScriptHost::unwrap(context, info.Holder());
- host->inspectImpl(toProtocolValue(context, info[0]), toProtocolValue(context, info[1]));
-}
-
void V8InjectedScriptHost::callFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
{
if (info.Length() < 2 || info.Length() > 3 || !info[0]->IsFunction()) {
@@ -284,7 +274,6 @@ char className[] = "V8InjectedScriptHost";
using InjectedScriptHostWrapper = InspectorWrapper<InjectedScriptHost, hiddenPropertyName, className>;
const InjectedScriptHostWrapper::V8MethodConfiguration V8InjectedScriptHostMethods[] = {
- {"inspect", V8InjectedScriptHost::inspectCallback},
{"internalConstructorName", V8InjectedScriptHost::internalConstructorNameCallback},
{"formatAccessorsAsProperties", V8InjectedScriptHost::formatAccessorsAsProperties},
{"isTypedArray", V8InjectedScriptHost::isTypedArrayCallback},

Powered by Google App Engine
This is Rietveld 408576698