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

Side by Side Diff: src/inspector/injected-script-source.js

Issue 2467853003: [inspector] migrate Runtime to new style (Closed)
Patch Set: addressed comments Created 4 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
« no previous file with comments | « src/inspector/injected-script.cc ('k') | src/inspector/remote-object-id.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 */ 253 */
254 wrapPropertyInArray: function(array, property, groupName, forceValueType, ge neratePreview) 254 wrapPropertyInArray: function(array, property, groupName, forceValueType, ge neratePreview)
255 { 255 {
256 for (var i = 0; i < array.length; ++i) { 256 for (var i = 0; i < array.length; ++i) {
257 if (typeof array[i] === "object" && property in array[i]) 257 if (typeof array[i] === "object" && property in array[i])
258 array[i][property] = this.wrapObject(array[i][property], groupNa me, forceValueType, generatePreview); 258 array[i][property] = this.wrapObject(array[i][property], groupNa me, forceValueType, generatePreview);
259 } 259 }
260 }, 260 },
261 261
262 /** 262 /**
263 * @param {!Array<*>} array
264 * @param {string} groupName
265 * @param {boolean} forceValueType
266 * @param {boolean} generatePreview
267 */
268 wrapObjectsInArray: function(array, groupName, forceValueType, generatePrevi ew)
269 {
270 for (var i = 0; i < array.length; ++i)
271 array[i] = this.wrapObject(array[i], groupName, forceValueType, gene ratePreview);
272 },
273
274 /**
275 * @param {!Object} table 263 * @param {!Object} table
276 * @param {!Array.<string>|string|boolean} columns 264 * @param {!Array.<string>|string|boolean} columns
277 * @return {!RuntimeAgent.RemoteObject} 265 * @return {!RuntimeAgent.RemoteObject}
278 */ 266 */
279 wrapTable: function(table, columns) 267 wrapTable: function(table, columns)
280 { 268 {
281 var columnNames = null; 269 var columnNames = null;
282 if (typeof columns === "string") 270 if (typeof columns === "string")
283 columns = [columns]; 271 columns = [columns];
284 if (InjectedScriptHost.subtype(columns) === "array") { 272 if (InjectedScriptHost.subtype(columns) === "array") {
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 return string.substr(0, leftHalf) + "\u2026" + string.substr(string. length - rightHalf, rightHalf); 1055 return string.substr(0, leftHalf) + "\u2026" + string.substr(string. length - rightHalf, rightHalf);
1068 } 1056 }
1069 return string.substr(0, maxLength) + "\u2026"; 1057 return string.substr(0, maxLength) + "\u2026";
1070 }, 1058 },
1071 1059
1072 __proto__: null 1060 __proto__: null
1073 } 1061 }
1074 1062
1075 return injectedScript; 1063 return injectedScript;
1076 }) 1064 })
OLDNEW
« no previous file with comments | « src/inspector/injected-script.cc ('k') | src/inspector/remote-object-id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698