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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/ScopeChainSidebarPane.js

Issue 2174863003: DevTools: traverse widget hierarchy to reveal views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 4 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) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 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 * 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 /** 51 /**
52 * @param {?WebInspector.DebuggerModel.CallFrame} callFrame 52 * @param {?WebInspector.DebuggerModel.CallFrame} callFrame
53 * @param {?WebInspector.RemoteObject} thisObject 53 * @param {?WebInspector.RemoteObject} thisObject
54 */ 54 */
55 _innerUpdate: function(callFrame, thisObject) 55 _innerUpdate: function(callFrame, thisObject)
56 { 56 {
57 this.element.removeChildren(); 57 this.element.removeChildren();
58 58
59 if (!callFrame) { 59 if (!callFrame) {
60 var infoElement = createElement("div"); 60 var infoElement = createElement("div");
61 infoElement.className = "info"; 61 infoElement.className = "gray-info-message";
62 infoElement.textContent = WebInspector.UIString("Not Paused"); 62 infoElement.textContent = WebInspector.UIString("Not Paused");
63 this.element.appendChild(infoElement); 63 this.element.appendChild(infoElement);
64 return; 64 return;
65 } 65 }
66 66
67 var foundLocalScope = false; 67 var foundLocalScope = false;
68 var scopeChain = callFrame.scopeChain(); 68 var scopeChain = callFrame.scopeChain();
69 for (var i = 0; i < scopeChain.length; ++i) { 69 for (var i = 0; i < scopeChain.length; ++i) {
70 var scope = scopeChain[i]; 70 var scope = scopeChain[i];
71 var title = null; 71 var title = null;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 section.element.classList.add("scope-chain-sidebar-pane-section"); 133 section.element.classList.add("scope-chain-sidebar-pane-section");
134 this.element.appendChild(section.element); 134 this.element.appendChild(section.element);
135 } 135 }
136 this._sidebarPaneUpdatedForTest(); 136 this._sidebarPaneUpdatedForTest();
137 }, 137 },
138 138
139 _sidebarPaneUpdatedForTest: function() { }, 139 _sidebarPaneUpdatedForTest: function() { },
140 140
141 __proto__: WebInspector.View.prototype 141 __proto__: WebInspector.View.prototype
142 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698