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

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
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/host/InspectorFrontendHost.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c8d1f9acbe818605c9203f19cf342d4963798ee3 100644
--- a/Source/devtools/front_end/devtools.js
+++ b/Source/devtools/front_end/devtools.js
@@ -272,6 +272,24 @@ DevToolsAPIImpl.prototype = {
streamWrite: function(id, chunk)
{
this._dispatchOnInspectorFrontendAPI("streamWrite", [id, chunk]);
+ },
+
+ frontendAPIAttached: function()
+ {
+ this._dispatchOnInspectorFrontendAPI("frontendAPIAttached", []);
+ },
+
+ frontendAPIDetached: function()
+ {
+ this._dispatchOnInspectorFrontendAPI("frontendAPIDetached", []);
+ },
+
+ /**
+ * @param {string} command
+ */
+ dispatchFrontendAPIMessage: function(command)
+ {
+ this._dispatchOnInspectorFrontendAPI("dispatchFrontendAPIMessage", [command]);
}
}
@@ -496,6 +514,15 @@ InspectorFrontendHostImpl.prototype = {
/**
* @override
+ * @param {string} message
+ */
+ sendFrontendAPINotification: function(message)
+ {
+ DevToolsAPI.sendMessageToEmbedder("sendFrontendAPINotification", [message], null);
+ },
+
+ /**
+ * @override
*/
requestFileSystems: function()
{
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/host/InspectorFrontendHost.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698