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

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

Issue 671463002: DevTools: make flame chart a web component. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test fixed Created 6 years, 2 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
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 29 matching lines...) Expand all
40 { 40 {
41 WebInspector.Panel.call(this, id); 41 WebInspector.Panel.call(this, id);
42 this._server = server; 42 this._server = server;
43 this.setHideOnDetach(); 43 this.setHideOnDetach();
44 this.element.classList.add("extension-panel"); 44 this.element.classList.add("extension-panel");
45 this._panelStatusBarElement = this.element.createChild("div", "panel-status- bar hidden"); 45 this._panelStatusBarElement = this.element.createChild("div", "panel-status- bar hidden");
46 46
47 this._searchableView = new WebInspector.SearchableView(this); 47 this._searchableView = new WebInspector.SearchableView(this);
48 this._searchableView.show(this.element); 48 this._searchableView.show(this.element);
49 49
50 var extensionView = new WebInspector.ExtensionView(server, id, pageURL, "ext ension panel"); 50 var extensionView = new WebInspector.ExtensionView(server, id, pageURL, "ext ension");
51 extensionView.show(this._searchableView.element); 51 extensionView.show(this._searchableView.element);
52 this.setDefaultFocusedElement(extensionView.defaultFocusedElement()); 52 this.setDefaultFocusedElement(extensionView.defaultFocusedElement());
53 } 53 }
54 54
55 WebInspector.ExtensionPanel.prototype = { 55 WebInspector.ExtensionPanel.prototype = {
56 /** 56 /**
57 * @return {!Element} 57 * @return {!Element}
58 */ 58 */
59 defaultFocusedElement: function() 59 defaultFocusedElement: function()
60 { 60 {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 if (!title) 287 if (!title)
288 section.headerElement.classList.add("hidden"); 288 section.headerElement.classList.add("hidden");
289 section.expanded = true; 289 section.expanded = true;
290 section.editable = false; 290 section.editable = false;
291 this._objectPropertiesView.element.appendChild(section.element); 291 this._objectPropertiesView.element.appendChild(section.element);
292 callback(); 292 callback();
293 }, 293 },
294 294
295 __proto__: WebInspector.SidebarPane.prototype 295 __proto__: WebInspector.SidebarPane.prototype
296 } 296 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/ElementsTreeOutline.js ('k') | Source/devtools/front_end/host/Platform.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698