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

Unified Diff: Source/devtools/front_end/network/RequestResponseView.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/RequestResponseView.js
diff --git a/Source/devtools/front_end/network/RequestResponseView.js b/Source/devtools/front_end/network/RequestResponseView.js
index 24ee39afbdfa94ddaea3e9af361c6791e1a774ee..802b2e07ae657a9b7fa14a47adfb93666e80253c 100644
--- a/Source/devtools/front_end/network/RequestResponseView.js
+++ b/Source/devtools/front_end/network/RequestResponseView.js
@@ -60,25 +60,25 @@ WebInspector.RequestResponseView.prototype = {
/**
* @param {string} message
- * @return {!WebInspector.EmptyView}
+ * @return {!WebInspector.EmptyWidget}
*/
_createMessageView: function(message)
{
- return new WebInspector.EmptyView(message);
+ return new WebInspector.EmptyWidget(message);
},
contentLoaded: function()
{
if ((!this.request.content || !this.sourceView) && !this.request.contentError()) {
- if (!this._emptyView) {
- this._emptyView = this._createMessageView(WebInspector.UIString("This request has no response data available."));
- this._emptyView.show(this.element);
- this.innerView = this._emptyView;
+ if (!this._emptyWidget) {
+ this._emptyWidget = this._createMessageView(WebInspector.UIString("This request has no response data available."));
+ 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.request.content && this.sourceView) {
« no previous file with comments | « Source/devtools/front_end/network/RequestPreviewView.js ('k') | Source/devtools/front_end/network/RequestView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698