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

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

Issue 2519773003: [debug] Add Eval scope type to inspector protocol (Closed)
Patch Set: Address 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/debugger_script_externs.js ('k') | src/inspector/js_protocol.json » ('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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 * @const 204 * @const
205 */ 205 */
206 InjectedScript.closureTypes = { __proto__: null }; 206 InjectedScript.closureTypes = { __proto__: null };
207 InjectedScript.closureTypes["local"] = "Local"; 207 InjectedScript.closureTypes["local"] = "Local";
208 InjectedScript.closureTypes["closure"] = "Closure"; 208 InjectedScript.closureTypes["closure"] = "Closure";
209 InjectedScript.closureTypes["catch"] = "Catch"; 209 InjectedScript.closureTypes["catch"] = "Catch";
210 InjectedScript.closureTypes["block"] = "Block"; 210 InjectedScript.closureTypes["block"] = "Block";
211 InjectedScript.closureTypes["script"] = "Script"; 211 InjectedScript.closureTypes["script"] = "Script";
212 InjectedScript.closureTypes["with"] = "With Block"; 212 InjectedScript.closureTypes["with"] = "With Block";
213 InjectedScript.closureTypes["global"] = "Global"; 213 InjectedScript.closureTypes["global"] = "Global";
214 InjectedScript.closureTypes["eval"] = "Eval";
214 215
215 InjectedScript.prototype = { 216 InjectedScript.prototype = {
216 /** 217 /**
217 * @param {*} object 218 * @param {*} object
218 * @return {boolean} 219 * @return {boolean}
219 */ 220 */
220 isPrimitiveValue: function(object) 221 isPrimitiveValue: function(object)
221 { 222 {
222 // FIXME(33716): typeof document.all is always 'undefined'. 223 // FIXME(33716): typeof document.all is always 'undefined'.
223 return InjectedScript.primitiveTypes[typeof object] && !this._isHTMLAllC ollection(object); 224 return InjectedScript.primitiveTypes[typeof object] && !this._isHTMLAllC ollection(object);
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 return string.substr(0, leftHalf) + "\u2026" + string.substr(string. length - rightHalf, rightHalf); 1056 return string.substr(0, leftHalf) + "\u2026" + string.substr(string. length - rightHalf, rightHalf);
1056 } 1057 }
1057 return string.substr(0, maxLength) + "\u2026"; 1058 return string.substr(0, maxLength) + "\u2026";
1058 }, 1059 },
1059 1060
1060 __proto__: null 1061 __proto__: null
1061 } 1062 }
1062 1063
1063 return injectedScript; 1064 return injectedScript;
1064 }) 1065 })
OLDNEW
« no previous file with comments | « src/inspector/debugger_script_externs.js ('k') | src/inspector/js_protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698