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

Side by Side Diff: Source/WebCore/inspector/front-end/RemoteObject.js

Issue 7034027: Merge 86768 - 2011-05-18 Pavel Feldman <pfeldman@google.com> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 }, 118 },
119 119
120 _getProperties: function(ignoreHasOwnProperty, callback) 120 _getProperties: function(ignoreHasOwnProperty, callback)
121 { 121 {
122 if (!this._objectId) { 122 if (!this._objectId) {
123 callback([]); 123 callback([]);
124 return; 124 return;
125 } 125 }
126 function remoteObjectBinder(error, properties) 126 function remoteObjectBinder(error, properties)
127 { 127 {
128 if (error) 128 if (error) {
129 callback(null);
129 return; 130 return;
131 }
130 for (var i = 0; properties && i < properties.length; ++i) 132 for (var i = 0; properties && i < properties.length; ++i)
131 properties[i].value = WebInspector.RemoteObject.fromPayload(prop erties[i].value); 133 properties[i].value = WebInspector.RemoteObject.fromPayload(prop erties[i].value);
132 callback(properties); 134 callback(properties);
133 } 135 }
134 RuntimeAgent.getProperties(this._objectId, !!ignoreHasOwnProperty, remot eObjectBinder); 136 RuntimeAgent.getProperties(this._objectId, !!ignoreHasOwnProperty, remot eObjectBinder);
135 }, 137 },
136 138
137 setPropertyValue: function(name, value, callback) 139 setPropertyValue: function(name, value, callback)
138 { 140 {
139 if (!this._objectId) { 141 if (!this._objectId) {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 if (!this._cachedChildren) 263 if (!this._cachedChildren)
262 this._cachedChildren = Object.keys(this._value).map(buildProperty.bi nd(this)); 264 this._cachedChildren = Object.keys(this._value).map(buildProperty.bi nd(this));
263 return this._cachedChildren; 265 return this._cachedChildren;
264 }, 266 },
265 267
266 isError: function() 268 isError: function()
267 { 269 {
268 return false; 270 return false;
269 } 271 }
270 } 272 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/ConsoleView.js ('k') | Source/WebCore/inspector/front-end/ScriptsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698