| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * @type {boolean} | 46 * @type {boolean} |
| 47 */ | 47 */ |
| 48 this.resourceTrackingEnabled_ = false; | 48 this.resourceTrackingEnabled_ = false; |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * @type {boolean} | 51 * @type {boolean} |
| 52 */ | 52 */ |
| 53 this.timelineEnabled_ = false; | 53 this.timelineEnabled_ = false; |
| 54 |
| 55 /** |
| 56 * @type {Object} |
| 57 */ |
| 58 this.settings_ = {}; |
| 54 }; | 59 }; |
| 55 | 60 |
| 56 | 61 |
| 57 /** | 62 /** |
| 58 * Wraps javascript callback. | 63 * Wraps javascript callback. |
| 59 * @param {function():undefined} func The callback to wrap. | 64 * @param {function():undefined} func The callback to wrap. |
| 60 * @return {function():undefined} Callback wrapper. | 65 * @return {function():undefined} Callback wrapper. |
| 61 */ | 66 */ |
| 62 devtools.InspectorController.prototype.wrapCallback = function f(func) { | 67 devtools.InspectorController.prototype.wrapCallback = function f(func) { |
| 63 // Just return as is. | 68 // Just return as is. |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 function() {}; | 477 function() {}; |
| 473 | 478 |
| 474 | 479 |
| 475 /** | 480 /** |
| 476 * Tells backend to step over the statement in debugger. | 481 * Tells backend to step over the statement in debugger. |
| 477 */ | 482 */ |
| 478 devtools.InspectorController.prototype.stepOverStatementInDebugger = | 483 devtools.InspectorController.prototype.stepOverStatementInDebugger = |
| 479 function() { | 484 function() { |
| 480 }; | 485 }; |
| 481 | 486 |
| 487 |
| 488 /** |
| 489 * Sets a setting value in backend. |
| 490 */ |
| 491 devtools.InspectorController.prototype.setSetting = |
| 492 function(setting, value) { |
| 493 this.settings_[setting] = value; |
| 494 }; |
| 495 |
| 496 |
| 497 /** |
| 498 * Retrieves a setting value stored in backend. |
| 499 */ |
| 500 devtools.InspectorController.prototype.setting = |
| 501 function(setting) { |
| 502 return this.settings_[setting]; |
| 503 }; |
| 504 |
| 505 |
| 482 var InspectorController = new devtools.InspectorController(); | 506 var InspectorController = new devtools.InspectorController(); |
| OLD | NEW |