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

Side by Side Diff: Source/devtools/front_end/ui/Section.js

Issue 905743003: DevTools: Reimplemented WI.WatchExpressionsSidebarPane (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/sources/sourcesPanel.css ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 { 144 {
145 this.element.appendChild(WebInspector.View.createStyleElement(cssFile)); 145 this.element.appendChild(WebInspector.View.createStyleElement(cssFile));
146 }, 146 },
147 147
148 /** 148 /**
149 * @param {!Event} event 149 * @param {!Event} event
150 * @protected 150 * @protected
151 */ 151 */
152 handleClick: function(event) 152 handleClick: function(event)
153 { 153 {
154 if (this._doNotExpandOnTitleClick)
155 return;
156
154 if (this._expanded) 157 if (this._expanded)
155 this.collapse(); 158 this.collapse();
156 else 159 else
157 this.expand(); 160 this.expand();
158 event.consume(); 161 event.consume();
162 },
163
164 doNotExpandOnTitleClick: function()
165 {
166 this._doNotExpandOnTitleClick = true;
159 } 167 }
160 } 168 }
161 169
162 /** 170 /**
163 * @constructor 171 * @constructor
164 * @extends {WebInspector.Section} 172 * @extends {WebInspector.Section}
165 * @param {string|!Node} title 173 * @param {string|!Node} title
166 * @param {string=} subtitle 174 * @param {string=} subtitle
167 */ 175 */
168 WebInspector.PropertiesSection = function(title, subtitle) 176 WebInspector.PropertiesSection = function(title, subtitle)
169 { 177 {
170 WebInspector.Section.call(this, title, subtitle); 178 WebInspector.Section.call(this, title, subtitle);
171 this.registerRequiredCSS("ui/propertiesSection.css"); 179 this.registerRequiredCSS("ui/propertiesSection.css");
172 180
173 this.propertiesElement = createElementWithClass("ol", "properties properties -tree monospace"); 181 this.propertiesElement = createElementWithClass("ol", "properties properties -tree monospace");
174 this.propertiesTreeOutline = new TreeOutline(this.propertiesElement, true); 182 this.propertiesTreeOutline = new TreeOutline(this.propertiesElement, true);
175 this.propertiesTreeOutline.setFocusable(false); 183 this.propertiesTreeOutline.setFocusable(false);
176 this.propertiesTreeOutline.section = this; 184 this.propertiesTreeOutline.section = this;
177 185
178 this.element.appendChild(this.propertiesElement); 186 this.element.appendChild(this.propertiesElement);
179 } 187 }
180 188
181 WebInspector.PropertiesSection.prototype = { 189 WebInspector.PropertiesSection.prototype = {
182 __proto__: WebInspector.Section.prototype 190 __proto__: WebInspector.Section.prototype
183 } 191 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/sourcesPanel.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698