| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 /** | 5 /** |
| 6 * @fileoverview Stub implementation of the InspectorController API. | 6 * @fileoverview Stub implementation of the InspectorController API. |
| 7 * This stub class is supposed to make front-end a standalone WebApp | 7 * This stub class is supposed to make front-end a standalone WebApp |
| 8 * that can be implemented/refactored in isolation from the Web browser | 8 * that can be implemented/refactored in isolation from the Web browser |
| 9 * backend. Clients need to subclass it in order to wire calls to the | 9 * backend. Clients need to subclass it in order to wire calls to the |
| 10 * non-stub backends. | 10 * non-stub backends. |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 439 |
| 440 | 440 |
| 441 /** | 441 /** |
| 442 * Tells backend to stop collecting profiler data. | 442 * Tells backend to stop collecting profiler data. |
| 443 */ | 443 */ |
| 444 devtools.InspectorController.prototype.stopProfiling = function() { | 444 devtools.InspectorController.prototype.stopProfiling = function() { |
| 445 }; | 445 }; |
| 446 | 446 |
| 447 | 447 |
| 448 /** | 448 /** |
| 449 * TODO(mnaganov): Remove after injected script change landing in WebKit. |
| 449 * @return {Array.<Object>} Profile snapshots array. | 450 * @return {Array.<Object>} Profile snapshots array. |
| 450 */ | 451 */ |
| 451 devtools.InspectorController.prototype.profiles = function() { | 452 devtools.InspectorController.prototype.profiles = function() { |
| 452 return []; | 453 return []; |
| 453 }; | 454 }; |
| 454 | 455 |
| 455 | 456 |
| 456 /** | 457 /** |
| 458 * Async function for retrieving headers of existing profiles. |
| 459 */ |
| 460 devtools.InspectorController.prototype.getProfileHeaders = function(callId) { |
| 461 WebInspector.didGetProfileHeaders(callId, []); |
| 462 }; |
| 463 |
| 464 |
| 465 /** |
| 466 * Async function for lazy loading an existing profile. |
| 467 */ |
| 468 devtools.InspectorController.prototype.getProfile = function(callId, uid) { |
| 469 }; |
| 470 |
| 471 |
| 472 /** |
| 457 * Tells backend to create a heap snapshot. | 473 * Tells backend to create a heap snapshot. |
| 458 */ | 474 */ |
| 459 devtools.InspectorController.prototype.takeHeapSnapshot = function() { | 475 devtools.InspectorController.prototype.takeHeapSnapshot = function() { |
| 460 }; | 476 }; |
| 461 | 477 |
| 462 | 478 |
| 463 /** | 479 /** |
| 464 * @return {Array.<string>} Database table names available offline. | 480 * @return {Array.<string>} Database table names available offline. |
| 465 */ | 481 */ |
| 466 devtools.InspectorController.prototype.databaseTableNames = | 482 devtools.InspectorController.prototype.databaseTableNames = |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 /** | 520 /** |
| 505 * Retrieves a setting value stored in backend. | 521 * Retrieves a setting value stored in backend. |
| 506 */ | 522 */ |
| 507 devtools.InspectorController.prototype.setting = | 523 devtools.InspectorController.prototype.setting = |
| 508 function(setting) { | 524 function(setting) { |
| 509 return this.settings_[setting]; | 525 return this.settings_[setting]; |
| 510 }; | 526 }; |
| 511 | 527 |
| 512 | 528 |
| 513 var InspectorController = new devtools.InspectorController(); | 529 var InspectorController = new devtools.InspectorController(); |
| OLD | NEW |