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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 (function(window) { 5 (function(window) {
6 6
7 // DevToolsAPI ---------------------------------------------------------------- 7 // DevToolsAPI ----------------------------------------------------------------
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 this._dispatchOnInspectorFrontendAPI("showConsole", []); 265 this._dispatchOnInspectorFrontendAPI("showConsole", []);
266 }, 266 },
267 267
268 /** 268 /**
269 * @param {number} id 269 * @param {number} id
270 * @param {string} chunk 270 * @param {string} chunk
271 */ 271 */
272 streamWrite: function(id, chunk) 272 streamWrite: function(id, chunk)
273 { 273 {
274 this._dispatchOnInspectorFrontendAPI("streamWrite", [id, chunk]); 274 this._dispatchOnInspectorFrontendAPI("streamWrite", [id, chunk]);
275 },
276
277 /**
278 * @param {!Object} command
279 */
280 dispatchFrontendAPIMessage: function(command)
281 {
282 this._dispatchOnInspectorFrontendAPI("dispatchFrontendAPIMessage", [comm and]);
275 } 283 }
276 } 284 }
277 285
278 var DevToolsAPI = new DevToolsAPIImpl(); 286 var DevToolsAPI = new DevToolsAPIImpl();
279 window.DevToolsAPI = DevToolsAPI; 287 window.DevToolsAPI = DevToolsAPI;
280 288
281 // InspectorFrontendHostImpl -------------------------------------------------- 289 // InspectorFrontendHostImpl --------------------------------------------------
282 290
283 /** 291 /**
284 * @constructor 292 * @constructor
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 * @param {number} actionCode 497 * @param {number} actionCode
490 * @param {number} bucketSize 498 * @param {number} bucketSize
491 */ 499 */
492 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize) 500 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize)
493 { 501 {
494 DevToolsAPI.sendMessageToEmbedder("recordEnumeratedHistogram", [actionNa me, actionCode, bucketSize], null); 502 DevToolsAPI.sendMessageToEmbedder("recordEnumeratedHistogram", [actionNa me, actionCode, bucketSize], null);
495 }, 503 },
496 504
497 /** 505 /**
498 * @override 506 * @override
507 * @param {string} message
508 */
509 sendFrontendAPINotification: function(message)
510 {
511 DevToolsAPI.sendMessageToEmbedder("sendFrontendAPINotification", [messag e], null);
512 },
513
514 /**
515 * @override
499 */ 516 */
500 requestFileSystems: function() 517 requestFileSystems: function()
501 { 518 {
502 DevToolsAPI.sendMessageToEmbedder("requestFileSystems", [], null); 519 DevToolsAPI.sendMessageToEmbedder("requestFileSystems", [], null);
503 }, 520 },
504 521
505 /** 522 /**
506 * @override 523 * @override
507 */ 524 */
508 addFileSystem: function() 525 addFileSystem: function()
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) 871 uiTests.testSuiteReady = function(testSuiteConstructor, testBase)
855 { 872 {
856 uiTests._testSuite = testSuiteConstructor(window.domAutomationController ); 873 uiTests._testSuite = testSuiteConstructor(window.domAutomationController );
857 uiTests._tryRun(); 874 uiTests._tryRun();
858 }; 875 };
859 876
860 window.uiTests = uiTests; 877 window.uiTests = uiTests;
861 } 878 }
862 879
863 })(window); 880 })(window);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698