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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionPanel.js

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 * @return {!WebInspector.ToolbarButton} 166 * @return {!WebInspector.ToolbarButton}
167 */ 167 */
168 toolbarButton: function() 168 toolbarButton: function()
169 { 169 {
170 return this._toolbarButton; 170 return this._toolbarButton;
171 } 171 }
172 } 172 }
173 173
174 /** 174 /**
175 * @constructor 175 * @constructor
176 * @extends {WebInspector.View} 176 * @extends {WebInspector.SimpleView}
177 * @param {!WebInspector.ExtensionServer} server 177 * @param {!WebInspector.ExtensionServer} server
178 * @param {string} panelName 178 * @param {string} panelName
179 * @param {string} title 179 * @param {string} title
180 * @param {string} id 180 * @param {string} id
181 */ 181 */
182 WebInspector.ExtensionSidebarPane = function(server, panelName, title, id) 182 WebInspector.ExtensionSidebarPane = function(server, panelName, title, id)
183 { 183 {
184 WebInspector.View.call(this, title); 184 WebInspector.SimpleView.call(this, title);
185 this.element.classList.add("fill"); 185 this.element.classList.add("fill");
186 this._panelName = panelName; 186 this._panelName = panelName;
187 this._server = server; 187 this._server = server;
188 this._id = id; 188 this._id = id;
189 } 189 }
190 190
191 WebInspector.ExtensionSidebarPane.prototype = { 191 WebInspector.ExtensionSidebarPane.prototype = {
192 /** 192 /**
193 * @return {string} 193 * @return {string}
194 */ 194 */
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 this._objectPropertiesView.element.removeChildren(); 298 this._objectPropertiesView.element.removeChildren();
299 var section = new WebInspector.ObjectPropertiesSection(object, title); 299 var section = new WebInspector.ObjectPropertiesSection(object, title);
300 if (!title) 300 if (!title)
301 section.titleLessMode(); 301 section.titleLessMode();
302 section.expand(); 302 section.expand();
303 section.editable = false; 303 section.editable = false;
304 this._objectPropertiesView.element.appendChild(section.element); 304 this._objectPropertiesView.element.appendChild(section.element);
305 callback(); 305 callback();
306 }, 306 },
307 307
308 __proto__: WebInspector.View.prototype 308 __proto__: WebInspector.SimpleView.prototype
309 } 309 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698