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

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

Issue 363973002: DevTools: bake generic css files into the concatenated one. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 * 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 * 10 *
(...skipping 22 matching lines...) Expand all
33 * @param {boolean} secondIsSidebar 33 * @param {boolean} secondIsSidebar
34 * @param {string=} settingName 34 * @param {string=} settingName
35 * @param {number=} defaultSidebarWidth 35 * @param {number=} defaultSidebarWidth
36 * @param {number=} defaultSidebarHeight 36 * @param {number=} defaultSidebarHeight
37 * @param {boolean=} constraintsInDip 37 * @param {boolean=} constraintsInDip
38 */ 38 */
39 WebInspector.SplitView = function(isVertical, secondIsSidebar, settingName, defa ultSidebarWidth, defaultSidebarHeight, constraintsInDip) 39 WebInspector.SplitView = function(isVertical, secondIsSidebar, settingName, defa ultSidebarWidth, defaultSidebarHeight, constraintsInDip)
40 { 40 {
41 WebInspector.View.call(this); 41 WebInspector.View.call(this);
42 42
43 this.registerRequiredCSS("splitView.css");
44 this.element.classList.add("split-view"); 43 this.element.classList.add("split-view");
45 44
46 this._mainView = new WebInspector.VBox(); 45 this._mainView = new WebInspector.VBox();
47 this._mainElement = this._mainView.element; 46 this._mainElement = this._mainView.element;
48 this._mainElement.className = "split-view-contents scroll-target split-view- main vbox"; // Override 47 this._mainElement.className = "split-view-contents scroll-target split-view- main vbox"; // Override
49 48
50 this._sidebarView = new WebInspector.VBox(); 49 this._sidebarView = new WebInspector.VBox();
51 this._sidebarElement = this._sidebarView.element; 50 this._sidebarElement = this._sidebarView.element;
52 this._sidebarElement.className = "split-view-contents scroll-target split-vi ew-sidebar vbox"; // Override 51 this._sidebarElement.className = "split-view-contents scroll-target split-vi ew-sidebar vbox"; // Override
53 52
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 this._showHideSidebarButton.state = sidebarHidden ? "show" : "hide"; 878 this._showHideSidebarButton.state = sidebarHidden ? "show" : "hide";
880 this._showHideSidebarButton.element.classList.toggle("top-sidebar-show-h ide-button", !this.isVertical() && !this.isSidebarSecond()); 879 this._showHideSidebarButton.element.classList.toggle("top-sidebar-show-h ide-button", !this.isVertical() && !this.isSidebarSecond());
881 this._showHideSidebarButton.element.classList.toggle("right-sidebar-show -hide-button", this.isVertical() && this.isSidebarSecond()); 880 this._showHideSidebarButton.element.classList.toggle("right-sidebar-show -hide-button", this.isVertical() && this.isSidebarSecond());
882 this._showHideSidebarButton.element.classList.toggle("bottom-sidebar-sho w-hide-button", !this.isVertical() && this.isSidebarSecond()); 881 this._showHideSidebarButton.element.classList.toggle("bottom-sidebar-sho w-hide-button", !this.isVertical() && this.isSidebarSecond());
883 this._showHideSidebarButton.element.classList.toggle("left-sidebar-show- hide-button", this.isVertical() && !this.isSidebarSecond()); 882 this._showHideSidebarButton.element.classList.toggle("left-sidebar-show- hide-button", this.isVertical() && !this.isSidebarSecond());
884 this._showHideSidebarButton.title = sidebarHidden ? WebInspector.UIStrin g("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hide %s" , this._showHideSidebarButtonTitle); 883 this._showHideSidebarButton.title = sidebarHidden ? WebInspector.UIStrin g("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hide %s" , this._showHideSidebarButtonTitle);
885 }, 884 },
886 885
887 __proto__: WebInspector.View.prototype 886 __proto__: WebInspector.View.prototype
888 } 887 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698