| 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 Injects 'injected' object into the inspectable page. | 6 * @fileoverview Injects 'injected' object into the inspectable page. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 var InspectorControllerDispatcher = {}; | 10 var InspectorControllerDispatcher = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * are sent to this object if the ApuAgentDispatcher is enabled. | 26 * are sent to this object if the ApuAgentDispatcher is enabled. |
| 27 **/ | 27 **/ |
| 28 var ApuAgentDispatcher = { enabled : false }; | 28 var ApuAgentDispatcher = { enabled : false }; |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * Dispatches messages to APU. This filters and transforms | 31 * Dispatches messages to APU. This filters and transforms |
| 32 * outgoing messages that are used by APU. | 32 * outgoing messages that are used by APU. |
| 33 * @param {string} method name of the dispatch method. | 33 * @param {string} method name of the dispatch method. |
| 34 **/ | 34 **/ |
| 35 ApuAgentDispatcher.dispatchToApu = function(method, args) { | 35 ApuAgentDispatcher.dispatchToApu = function(method, args) { |
| 36 if (method != 'addItemToTimeline' && | 36 if (method != 'addRecordToTimeline' && |
| 37 method != 'updateResource' && | 37 method != 'updateResource' && |
| 38 method != 'addResource') { | 38 method != 'addResource') { |
| 39 return; | 39 return; |
| 40 } | 40 } |
| 41 // TODO(knorton): Transform args so they can be used | 41 // TODO(knorton): Transform args so they can be used |
| 42 // by APU. | 42 // by APU. |
| 43 DevToolsAgentHost.dispatchToApu(JSON.stringify(args)); | 43 DevToolsAgentHost.dispatchToApu(JSON.stringify(args)); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 /** | 46 /** |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 return (obj == null) ? "null" : obj.constructor.name; | 82 return (obj == null) ? "null" : obj.constructor.name; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * A no-op function that is called by debugger agent just to trigger v8 | 87 * A no-op function that is called by debugger agent just to trigger v8 |
| 88 * execution. | 88 * execution. |
| 89 */ | 89 */ |
| 90 function devtools$$void() { | 90 function devtools$$void() { |
| 91 } | 91 } |
| OLD | NEW |