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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/StackView.js
diff --git a/Source/devtools/front_end/ui/StackView.js b/Source/devtools/front_end/ui/StackView.js
index 5b19840eb446ce0b56e3b2dd4ef2d431b0bec05a..8cccbed94afcfed3c5788782e702fe49e903d2ac 100644
--- a/Source/devtools/front_end/ui/StackView.js
+++ b/Source/devtools/front_end/ui/StackView.js
@@ -35,38 +35,38 @@ WebInspector.StackView = function(isVertical)
{
WebInspector.VBox.call(this);
this._isVertical = isVertical;
- this._currentSplitView = null;
+ this._currentSplitWidget = null;
}
WebInspector.StackView.prototype = {
/**
- * @param {!WebInspector.View} view
+ * @param {!WebInspector.Widget} view
* @param {string=} sidebarSizeSettingName
* @param {number=} defaultSidebarWidth
* @param {number=} defaultSidebarHeight
- * @return {!WebInspector.SplitView}
+ * @return {!WebInspector.SplitWidget}
*/
appendView: function(view, sidebarSizeSettingName, defaultSidebarWidth, defaultSidebarHeight)
{
- var splitView = new WebInspector.SplitView(this._isVertical, true, sidebarSizeSettingName, defaultSidebarWidth, defaultSidebarHeight);
- splitView.setMainView(view);
- splitView.hideSidebar();
+ var splitWidget = new WebInspector.SplitWidget(this._isVertical, true, sidebarSizeSettingName, defaultSidebarWidth, defaultSidebarHeight);
+ splitWidget.setMainWidget(view);
+ splitWidget.hideSidebar();
- if (!this._currentSplitView) {
- splitView.show(this.element);
+ if (!this._currentSplitWidget) {
+ splitWidget.show(this.element);
} else {
- this._currentSplitView.setSidebarView(splitView);
- this._currentSplitView.showBoth();
+ this._currentSplitWidget.setSidebarWidget(splitWidget);
+ this._currentSplitWidget.showBoth();
}
- this._currentSplitView = splitView;
- return splitView;
+ this._currentSplitWidget = splitWidget;
+ return splitWidget;
},
- detachChildViews: function()
+ detachChildWidgets: function()
{
- WebInspector.View.prototype.detachChildViews.call(this);
- this._currentSplitView = null;
+ WebInspector.Widget.prototype.detachChildWidgets.call(this);
+ this._currentSplitWidget = null;
},
__proto__: WebInspector.VBox.prototype
« 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