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

Side by Side Diff: Source/devtools/front_end/ElementsPanel.js

Issue 214663005: [DevTools] Add preferred size to WebInspector.View. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Constraints Created 6 years, 9 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 this.registerRequiredCSS("breadcrumbList.css"); 49 this.registerRequiredCSS("breadcrumbList.css");
50 this.registerRequiredCSS("elementsPanel.css"); 50 this.registerRequiredCSS("elementsPanel.css");
51 this.registerRequiredCSS("textPrompt.css"); 51 this.registerRequiredCSS("textPrompt.css");
52 this.setHideOnDetach(); 52 this.setHideOnDetach();
53 53
54 this._splitView = new WebInspector.SplitView(true, true, "elementsPanelSplit ViewState", 325, 325); 54 this._splitView = new WebInspector.SplitView(true, true, "elementsPanelSplit ViewState", 325, 325);
55 this._splitView.addEventListener(WebInspector.SplitView.Events.SidebarSizeCh anged, this._updateTreeOutlineVisibleWidth.bind(this)); 55 this._splitView.addEventListener(WebInspector.SplitView.Events.SidebarSizeCh anged, this._updateTreeOutlineVisibleWidth.bind(this));
56 this._splitView.show(this.element); 56 this._splitView.show(this.element);
57 57
58 this._searchableView = new WebInspector.SearchableView(this); 58 this._searchableView = new WebInspector.SearchableView(this);
59 this._searchableView.setMinimumSize(25, 19); 59 this._searchableView.setConstraints(25, 19);
60 this._searchableView.show(this._splitView.mainElement()); 60 this._searchableView.show(this._splitView.mainElement());
61 var stackElement = this._searchableView.element; 61 var stackElement = this._searchableView.element;
62 62
63 this.contentElement = stackElement.createChild("div"); 63 this.contentElement = stackElement.createChild("div");
64 this.contentElement.id = "elements-content"; 64 this.contentElement.id = "elements-content";
65 this.contentElement.classList.add("outline-disclosure"); 65 this.contentElement.classList.add("outline-disclosure");
66 this.contentElement.classList.add("source-code"); 66 this.contentElement.classList.add("source-code");
67 if (!WebInspector.settings.domWordWrap.get()) 67 if (!WebInspector.settings.domWordWrap.get())
68 this.contentElement.classList.add("nowrap"); 68 this.contentElement.classList.add("nowrap");
69 WebInspector.settings.domWordWrap.addChangeListener(this._domWordWrapSetting Changed.bind(this)); 69 WebInspector.settings.domWordWrap.addChangeListener(this._domWordWrapSetting Changed.bind(this));
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1362 return; 1362 return;
1363 1363
1364 if (WebInspector.inspectElementModeController && WebInspector.inspectEle mentModeController.enabled()) { 1364 if (WebInspector.inspectElementModeController && WebInspector.inspectEle mentModeController.enabled()) {
1365 InspectorFrontendHost.bringToFront(); 1365 InspectorFrontendHost.bringToFront();
1366 WebInspector.inspectElementModeController.disable(); 1366 WebInspector.inspectElementModeController.disable();
1367 } 1367 }
1368 1368
1369 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.inspectorView.p anel("elements")).revealAndSelectNode(node.id); 1369 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.inspectorView.p anel("elements")).revealAndSelectNode(node.id);
1370 } 1370 }
1371 } 1371 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698