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

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

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 7 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/ui/SplitWidget.js ('k') | Source/devtools/front_end/ui/SuggestBox.js » ('j') | 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 17 matching lines...) Expand all
28 28
29 /** 29 /**
30 * @constructor 30 * @constructor
31 * @extends {WebInspector.VBox} 31 * @extends {WebInspector.VBox}
32 * @param {boolean} isVertical 32 * @param {boolean} isVertical
33 */ 33 */
34 WebInspector.StackView = function(isVertical) 34 WebInspector.StackView = function(isVertical)
35 { 35 {
36 WebInspector.VBox.call(this); 36 WebInspector.VBox.call(this);
37 this._isVertical = isVertical; 37 this._isVertical = isVertical;
38 this._currentSplitView = null; 38 this._currentSplitWidget = null;
39 } 39 }
40 40
41 WebInspector.StackView.prototype = { 41 WebInspector.StackView.prototype = {
42 /** 42 /**
43 * @param {!WebInspector.View} view 43 * @param {!WebInspector.Widget} view
44 * @param {string=} sidebarSizeSettingName 44 * @param {string=} sidebarSizeSettingName
45 * @param {number=} defaultSidebarWidth 45 * @param {number=} defaultSidebarWidth
46 * @param {number=} defaultSidebarHeight 46 * @param {number=} defaultSidebarHeight
47 * @return {!WebInspector.SplitView} 47 * @return {!WebInspector.SplitWidget}
48 */ 48 */
49 appendView: function(view, sidebarSizeSettingName, defaultSidebarWidth, defa ultSidebarHeight) 49 appendView: function(view, sidebarSizeSettingName, defaultSidebarWidth, defa ultSidebarHeight)
50 { 50 {
51 var splitView = new WebInspector.SplitView(this._isVertical, true, sideb arSizeSettingName, defaultSidebarWidth, defaultSidebarHeight); 51 var splitWidget = new WebInspector.SplitWidget(this._isVertical, true, s idebarSizeSettingName, defaultSidebarWidth, defaultSidebarHeight);
52 splitView.setMainView(view); 52 splitWidget.setMainWidget(view);
53 splitView.hideSidebar(); 53 splitWidget.hideSidebar();
54 54
55 if (!this._currentSplitView) { 55 if (!this._currentSplitWidget) {
56 splitView.show(this.element); 56 splitWidget.show(this.element);
57 } else { 57 } else {
58 this._currentSplitView.setSidebarView(splitView); 58 this._currentSplitWidget.setSidebarWidget(splitWidget);
59 this._currentSplitView.showBoth(); 59 this._currentSplitWidget.showBoth();
60 } 60 }
61 61
62 this._currentSplitView = splitView; 62 this._currentSplitWidget = splitWidget;
63 return splitView; 63 return splitWidget;
64 }, 64 },
65 65
66 detachChildViews: function() 66 detachChildWidgets: function()
67 { 67 {
68 WebInspector.View.prototype.detachChildViews.call(this); 68 WebInspector.Widget.prototype.detachChildWidgets.call(this);
69 this._currentSplitView = null; 69 this._currentSplitWidget = null;
70 }, 70 },
71 71
72 __proto__: WebInspector.VBox.prototype 72 __proto__: WebInspector.VBox.prototype
73 } 73 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ui/SplitWidget.js ('k') | Source/devtools/front_end/ui/SuggestBox.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698