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

Side by Side Diff: sky/framework/inspector/runtime-agent.sky

Issue 766683005: Populate scope sections with variable name/values (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Removed unused code Created 6 years 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
OLDNEW
1 <import src="debug.sky" as="debug" /> 1 <import src="debug.sky" as="debug" />
2 <script> 2 <script>
3 function Runtime(delegate) { 3 function Runtime(delegate) {
4 this.delegate_ = delegate; 4 this.delegate_ = delegate;
5 } 5 }
6 6
7 Runtime.prototype.enable = function() { 7 Runtime.prototype.enable = function() {
8 this.delegate_.sendMessage("Runtime.executionContextCreated", { 8 this.delegate_.sendMessage("Runtime.executionContextCreated", {
9 "context": { 9 "context": {
10 "frameId": 1, 10 "frameId": 1,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 value = eval(params.expression); 109 value = eval(params.expression);
110 } catch (e) { 110 } catch (e) {
111 value = e; 111 value = e;
112 wasThrown = true; 112 wasThrown = true;
113 } 113 }
114 114
115 return makeResult(params, value, wasThrown); 115 return makeResult(params, value, wasThrown);
116 } 116 }
117 117
118 Runtime.prototype.getProperties = function(params) { 118 Runtime.prototype.getProperties = function(params) {
119 // FIXME: Unclear what this is for. 119 var properties = injectedScript.getProperties(params.objectId, !!params.ownPro perties, !!params.accessorPropertiesOnly);
120 return []; 120 var result = {
121 result: properties
122 };
123 if (!params.accessorPropertiesOnly) {
124 result.internalProperties = injectedScript.getInternalProperties(params.obje ctId);
125 }
126 return result;
121 } 127 }
122 128
123 module.exports = Runtime; 129 module.exports = Runtime;
124 </script> 130 </script>
OLDNEW
« sky/engine/core/inspector/InjectedScriptManager.cpp ('K') | « sky/framework/inspector/inspector.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698