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

Side by Side Diff: webkit/glue/devtools/js/inject_dispatch.js

Issue 339016: Renames addItemToTimeline to addRecordToTimeline due to WebKit... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698