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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js

Issue 1912973002: [DevTools] JSONView parsing smarter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 { 82 {
83 this._skipProto = true; 83 this._skipProto = true;
84 }, 84 },
85 85
86 expand: function() 86 expand: function()
87 { 87 {
88 this._objectTreeElement.expand(); 88 this._objectTreeElement.expand();
89 }, 89 },
90 90
91 /** 91 /**
92 * @param {boolean} value
93 */
94 setEditable: function(value)
95 {
96 this._editable = value;
97 },
98
99 /**
92 * @return {!TreeElement} 100 * @return {!TreeElement}
93 */ 101 */
94 objectTreeElement: function() 102 objectTreeElement: function()
95 { 103 {
96 return this._objectTreeElement; 104 return this._objectTreeElement;
97 }, 105 },
98 106
99 enableContextMenu: function() 107 enableContextMenu: function()
100 { 108 {
101 this.element.addEventListener("contextmenu", this._contextMenuEventFired .bind(this), false); 109 this.element.addEventListener("contextmenu", this._contextMenuEventFired .bind(this), false);
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 1338
1331 result = currentName + (result ? "." + result : ""); 1339 result = currentName + (result ? "." + result : "");
1332 current = current.parent; 1340 current = current.parent;
1333 } 1341 }
1334 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie sSectionExpandController._treeOutlineId]; 1342 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie sSectionExpandController._treeOutlineId];
1335 result = treeOutlineId + (result ? ":" + result : ""); 1343 result = treeOutlineId + (result ? ":" + result : "");
1336 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached PathSymbol] = result; 1344 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached PathSymbol] = result;
1337 return result; 1345 return result;
1338 } 1346 }
1339 } 1347 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/devtools.gypi ('k') | third_party/WebKit/Source/devtools/front_end/es_tree/ESTreeWalker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698