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

Unified Diff: Source/devtools/front_end/network/RequestPreviewView.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/network/RequestPreviewView.js
diff --git a/Source/devtools/front_end/network/RequestPreviewView.js b/Source/devtools/front_end/network/RequestPreviewView.js
index da6e8a8b4422eab4ec714e5207ec77595afcebbd..8ff60d6325bf768c55d8df80b21f083dcee31e38 100644
--- a/Source/devtools/front_end/network/RequestPreviewView.js
+++ b/Source/devtools/front_end/network/RequestPreviewView.js
@@ -32,7 +32,7 @@
* @constructor
* @extends {WebInspector.RequestContentView}
* @param {!WebInspector.NetworkRequest} request
- * @param {!WebInspector.View} responseView
+ * @param {!WebInspector.Widget} responseView
*/
WebInspector.RequestPreviewView = function(request, responseView)
{
@@ -44,15 +44,15 @@ WebInspector.RequestPreviewView.prototype = {
contentLoaded: function()
{
if (!this.request.content && !this.request.contentError()) {
- if (!this._emptyView) {
- this._emptyView = this._createEmptyView();
- this._emptyView.show(this.element);
- this.innerView = this._emptyView;
+ if (!this._emptyWidget) {
+ this._emptyWidget = this._createEmptyWidget();
+ this._emptyWidget.show(this.element);
+ this.innerView = this._emptyWidget;
}
} else {
- if (this._emptyView) {
- this._emptyView.detach();
- delete this._emptyView;
+ if (this._emptyWidget) {
+ this._emptyWidget.detach();
+ delete this._emptyWidget;
}
if (!this._previewView)
@@ -62,18 +62,18 @@ WebInspector.RequestPreviewView.prototype = {
}
},
- _createEmptyView: function()
+ _createEmptyWidget: function()
{
return this._createMessageView(WebInspector.UIString("This request has no preview available."));
},
/**
* @param {string} message
- * @return {!WebInspector.EmptyView}
+ * @return {!WebInspector.EmptyWidget}
*/
_createMessageView: function(message)
{
- return new WebInspector.EmptyView(message);
+ return new WebInspector.EmptyWidget(message);
},
/**
@@ -164,7 +164,7 @@ WebInspector.RequestPreviewView.prototype = {
return this._responseView.sourceView;
if (this.request.resourceType() === WebInspector.resourceTypes.Other)
- return this._createEmptyView();
+ return this._createEmptyWidget();
return WebInspector.RequestView.nonSourceViewForRequest(this.request);
},
« no previous file with comments | « Source/devtools/front_end/network/RequestCookiesView.js ('k') | Source/devtools/front_end/network/RequestResponseView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698