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

Unified Diff: Source/devtools/front_end/components/InspectorView.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
Index: Source/devtools/front_end/components/InspectorView.js
diff --git a/Source/devtools/front_end/components/InspectorView.js b/Source/devtools/front_end/components/InspectorView.js
index dca54d7fe278dda06f0d7ab5f048a239d6ebc822..88f67f384c720147c465a58cf9e41102264fffa7 100644
--- a/Source/devtools/front_end/components/InspectorView.js
+++ b/Source/devtools/front_end/components/InspectorView.js
@@ -40,18 +40,18 @@ WebInspector.InspectorView = function()
this.setMinimumSize(210, 72);
// DevTools sidebar is a vertical split of panels tabbed pane and a drawer.
- this._drawerSplitView = new WebInspector.SplitView(false, true, "Inspector.drawerSplitViewState", 200, 200);
- this._drawerSplitView.hideSidebar();
- this._drawerSplitView.enableShowModeSaving();
- this._drawerSplitView.show(this.element);
+ this._drawerSplitWidget = new WebInspector.SplitWidget(false, true, "Inspector.drawerSplitViewState", 200, 200);
+ this._drawerSplitWidget.hideSidebar();
+ this._drawerSplitWidget.enableShowModeSaving();
+ this._drawerSplitWidget.show(this.element);
this._tabbedPane = new WebInspector.TabbedPane();
this._tabbedPane.element.classList.add("inspector-view-tabbed-pane");
this._tabbedPane.setRetainTabOrder(true);
if (Runtime.experiments.isEnabled("materialDesign"))
this._tabbedPane.setTabSlider(true);
- this._drawerSplitView.setMainView(this._tabbedPane);
- this._drawer = new WebInspector.Drawer(this._drawerSplitView);
+ this._drawerSplitWidget.setMainWidget(this._tabbedPane);
+ this._drawer = new WebInspector.Drawer(this._drawerSplitWidget);
this._panels = {};
// Used by tests.
@@ -138,7 +138,7 @@ WebInspector.InspectorView.prototype = {
{
var panelName = panelDescriptor.name();
this._panelDescriptors[panelName] = panelDescriptor;
- this._tabbedPane.appendTab(panelName, panelDescriptor.title(), new WebInspector.View());
+ this._tabbedPane.appendTab(panelName, panelDescriptor.title(), new WebInspector.Widget());
if (this._lastActivePanelSetting.get() === panelName)
this._tabbedPane.selectTab(panelName);
},
@@ -316,7 +316,7 @@ WebInspector.InspectorView.prototype = {
/**
* @param {string} id
* @param {string} title
- * @param {!WebInspector.View} view
+ * @param {!WebInspector.Widget} view
*/
showCloseableViewInDrawer: function(id, title, view)
{
« no previous file with comments | « Source/devtools/front_end/components/Drawer.js ('k') | Source/devtools/front_end/components/ObjectPopoverHelper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698