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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 1866213002: [DevTools] Move inspect from Inspector to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inspector-connection
Patch Set: inspectRequested 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/devtools/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index 5e75ce972f40f9c22e72ef1bb13f4f1f2ad66da9..4af10793968d2ff7e740f16b34edadadd5ff8ca5 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -544,42 +544,6 @@ WebInspector.Main.prototype = {
/**
* @override
- * @param {!RuntimeAgent.RemoteObject} payload
- * @param {!Object=} hints
- */
- inspect: function(payload, hints)
- {
- var object = this._mainTarget.runtimeModel.createRemoteObject(payload);
- if (object.isNode()) {
- WebInspector.Revealer.revealPromise(object).then(object.release.bind(object));
- return;
- }
-
- if (object.type === "function") {
- WebInspector.RemoteFunction.objectAsFunction(object).targetFunctionDetails().then(didGetDetails);
- return;
- }
-
- /**
- * @param {?WebInspector.DebuggerModel.FunctionDetails} response
- */
- function didGetDetails(response)
- {
- object.release();
-
- if (!response || !response.location)
- return;
-
- WebInspector.Revealer.reveal(WebInspector.debuggerWorkspaceBinding.rawLocationToUILocation(response.location));
- }
-
- if (hints.copyToClipboard)
- InspectorFrontendHost.copyText(object.value);
- object.release();
- },
-
- /**
- * @override
* @param {string} reason
*/
detached: function(reason)

Powered by Google App Engine
This is Rietveld 408576698