| OLD | NEW |
| 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 Loading... |
| 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 frontendAPIAttached: function() |
| 278 { |
| 279 this._dispatchOnInspectorFrontendAPI("frontendAPIAttached", []); |
| 280 }, |
| 281 |
| 282 frontendAPIDetached: function() |
| 283 { |
| 284 this._dispatchOnInspectorFrontendAPI("frontendAPIDetached", []); |
| 285 }, |
| 286 |
| 287 /** |
| 288 * @param {string} command |
| 289 */ |
| 290 dispatchFrontendAPIMessage: function(command) |
| 291 { |
| 292 this._dispatchOnInspectorFrontendAPI("dispatchFrontendAPIMessage", [comm
and]); |
| 275 } | 293 } |
| 276 } | 294 } |
| 277 | 295 |
| 278 var DevToolsAPI = new DevToolsAPIImpl(); | 296 var DevToolsAPI = new DevToolsAPIImpl(); |
| 279 window.DevToolsAPI = DevToolsAPI; | 297 window.DevToolsAPI = DevToolsAPI; |
| 280 | 298 |
| 281 // InspectorFrontendHostImpl -------------------------------------------------- | 299 // InspectorFrontendHostImpl -------------------------------------------------- |
| 282 | 300 |
| 283 /** | 301 /** |
| 284 * @constructor | 302 * @constructor |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 * @param {number} actionCode | 507 * @param {number} actionCode |
| 490 * @param {number} bucketSize | 508 * @param {number} bucketSize |
| 491 */ | 509 */ |
| 492 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize) | 510 recordEnumeratedHistogram: function(actionName, actionCode, bucketSize) |
| 493 { | 511 { |
| 494 DevToolsAPI.sendMessageToEmbedder("recordEnumeratedHistogram", [actionNa
me, actionCode, bucketSize], null); | 512 DevToolsAPI.sendMessageToEmbedder("recordEnumeratedHistogram", [actionNa
me, actionCode, bucketSize], null); |
| 495 }, | 513 }, |
| 496 | 514 |
| 497 /** | 515 /** |
| 498 * @override | 516 * @override |
| 517 * @param {string} message |
| 518 */ |
| 519 sendFrontendAPINotification: function(message) |
| 520 { |
| 521 DevToolsAPI.sendMessageToEmbedder("sendFrontendAPINotification", [messag
e], null); |
| 522 }, |
| 523 |
| 524 /** |
| 525 * @override |
| 499 */ | 526 */ |
| 500 requestFileSystems: function() | 527 requestFileSystems: function() |
| 501 { | 528 { |
| 502 DevToolsAPI.sendMessageToEmbedder("requestFileSystems", [], null); | 529 DevToolsAPI.sendMessageToEmbedder("requestFileSystems", [], null); |
| 503 }, | 530 }, |
| 504 | 531 |
| 505 /** | 532 /** |
| 506 * @override | 533 * @override |
| 507 */ | 534 */ |
| 508 addFileSystem: function() | 535 addFileSystem: function() |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) | 881 uiTests.testSuiteReady = function(testSuiteConstructor, testBase) |
| 855 { | 882 { |
| 856 uiTests._testSuite = testSuiteConstructor(window.domAutomationController
); | 883 uiTests._testSuite = testSuiteConstructor(window.domAutomationController
); |
| 857 uiTests._tryRun(); | 884 uiTests._tryRun(); |
| 858 }; | 885 }; |
| 859 | 886 |
| 860 window.uiTests = uiTests; | 887 window.uiTests = uiTests; |
| 861 } | 888 } |
| 862 | 889 |
| 863 })(window); | 890 })(window); |
| OLD | NEW |