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

Unified Diff: Source/devtools/front_end/devtools.js

Issue 1314853006: DevTools: expose wired front-end API for editors interop [blink] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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: Source/devtools/front_end/devtools.js
diff --git a/Source/devtools/front_end/devtools.js b/Source/devtools/front_end/devtools.js
index e3f861d31057c880fe01f7379b5f27ff8bf5c38a..3a8e74a4e40f8902baa6fe4ac07a12e7ddcdbc3a 100644
--- a/Source/devtools/front_end/devtools.js
+++ b/Source/devtools/front_end/devtools.js
@@ -272,6 +272,14 @@ DevToolsAPIImpl.prototype = {
streamWrite: function(id, chunk)
{
this._dispatchOnInspectorFrontendAPI("streamWrite", [id, chunk]);
+ },
+
+ /**
+ * @param {!Object} command
+ */
+ dispatchFrontendAPIMessage: function(command)
+ {
+ this._dispatchOnInspectorFrontendAPI("dispatchFrontendAPIMessage", [command]);
}
}
@@ -496,6 +504,15 @@ InspectorFrontendHostImpl.prototype = {
/**
* @override
+ * @param {string} message
+ */
+ sendFrontendAPINotification: function(message)
+ {
+ DevToolsAPI.sendMessageToEmbedder("sendFrontendAPINotification", [message], null);
+ },
+
+ /**
+ * @override
*/
requestFileSystems: function()
{

Powered by Google App Engine
This is Rietveld 408576698