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

Unified Diff: Source/devtools/front_end/profiler/ProfilesPanel.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/profiler/ProfilesPanel.js
diff --git a/Source/devtools/front_end/profiler/ProfilesPanel.js b/Source/devtools/front_end/profiler/ProfilesPanel.js
index e4d9ef9f420081fbcf5eb4326445f6636fd4d7f6..8488996590d1fe287b051cbdb56c9f7a901727fa 100644
--- a/Source/devtools/front_end/profiler/ProfilesPanel.js
+++ b/Source/devtools/front_end/profiler/ProfilesPanel.js
@@ -288,7 +288,7 @@ WebInspector.ProfileType.DataDisplayDelegate = function()
WebInspector.ProfileType.DataDisplayDelegate.prototype = {
/**
* @param {?WebInspector.ProfileHeader} profile
- * @return {?WebInspector.View}
+ * @return {?WebInspector.Widget}
*/
showProfile: function(profile) { },
@@ -371,7 +371,7 @@ WebInspector.ProfileHeader.prototype = {
/**
* @param {!WebInspector.ProfileType.DataDisplayDelegate} dataDisplayDelegate
- * @return {!WebInspector.View}
+ * @return {!WebInspector.Widget}
*/
createView: function(dataDisplayDelegate)
{
@@ -438,8 +438,8 @@ WebInspector.ProfilesPanel = function()
this.registerRequiredCSS("profiler/profilesPanel.css");
this.registerRequiredCSS("components/objectValue.css");
- var mainView = new WebInspector.VBox();
- this.splitView().setMainView(mainView);
+ var mainContainer = new WebInspector.VBox();
+ this.splitWidget().setMainWidget(mainContainer);
this.profilesItemTreeElement = new WebInspector.ProfilesSidebarTreeElement(this);
@@ -453,10 +453,10 @@ WebInspector.ProfilesPanel = function()
this.profileViews = createElement("div");
this.profileViews.id = "profile-views";
this.profileViews.classList.add("vbox");
- mainView.element.appendChild(this.profileViews);
+ mainContainer.element.appendChild(this.profileViews);
this._toolbarElement = createElementWithClass("div", "profiles-toolbar");
- mainView.element.insertBefore(this._toolbarElement, mainView.element.firstChild);
+ mainContainer.element.insertBefore(this._toolbarElement, mainContainer.element.firstChild);
this.panelSidebarElement().classList.add("profiles-sidebar-tree-box");
var toolbarContainerLeft = createElementWithClass("div", "profiles-toolbar");
@@ -779,7 +779,7 @@ WebInspector.ProfilesPanel.prototype = {
/**
* @override
* @param {?WebInspector.ProfileHeader} profile
- * @return {?WebInspector.View}
+ * @return {?WebInspector.Widget}
*/
showProfile: function(profile)
{
@@ -832,7 +832,7 @@ WebInspector.ProfilesPanel.prototype = {
/**
* @param {!WebInspector.ProfileHeader} profile
- * @return {!WebInspector.View}
+ * @return {!WebInspector.Widget}
*/
_viewForProfile: function(profile)
{

Powered by Google App Engine
This is Rietveld 408576698