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

Unified Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.h

Issue 1983423002: [DevTools] Move CommandLineAPI querySelector and querySelectorAll to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-bind-remote-object
Patch Set: rebased 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
index 0723e08a8ab7c5e2936958da7ed779bcc85c24f0..185464e71b2fc456cf99da5809b1e84a6966766d 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.h
@@ -68,6 +68,9 @@ public:
void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*);
void contextWillBeDestroyed(ScriptState*);
+ static bool isCommandLineAPIMethod(const String& name);
+ void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::Object>) override;
+
v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>, v8::Local<v8::Object> creationContext) override;
protected:
void reportMessageToConsole(v8::Local<v8::Context>, ConsoleMessage*) override;
@@ -87,6 +90,10 @@ private:
OwnPtr<InspectorTaskRunner> m_taskRunner;
static MainThreadDebugger* s_instance;
+
+ static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
+ static void querySelectorAllCallback(const v8::FunctionCallbackInfo<v8::Value>&);
+ static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698