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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/RequestPreviewView.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 */ 36 */
37 WebInspector.RequestPreviewView = function(request, responseView) 37 WebInspector.RequestPreviewView = function(request, responseView)
38 { 38 {
39 WebInspector.RequestContentView.call(this, request); 39 WebInspector.RequestContentView.call(this, request);
40 this._responseView = responseView; 40 this._responseView = responseView;
41 /** @type {?WebInspector.Widget} */ 41 /** @type {?WebInspector.Widget} */
42 this._previewView = null; 42 this._previewView = null;
43 }; 43 };
44 44
45 WebInspector.RequestPreviewView.prototype = { 45 WebInspector.RequestPreviewView.prototype = {
46 /**
47 * @override
48 */
46 contentLoaded: function() 49 contentLoaded: function()
47 { 50 {
48 if (!this.request.content && !this.request.contentError()) { 51 if (!this.request.content && !this.request.contentError()) {
49 if (!this._emptyWidget) { 52 if (!this._emptyWidget) {
50 this._emptyWidget = this._createEmptyWidget(); 53 this._emptyWidget = this._createEmptyWidget();
51 this._emptyWidget.show(this.element); 54 this._emptyWidget.show(this.element);
52 this._previewView = this._emptyWidget; 55 this._previewView = this._emptyWidget;
53 } 56 }
54 return; 57 return;
55 } 58 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 193
191 if (this.request.resourceType() === WebInspector.resourceTypes.Other ) 194 if (this.request.resourceType() === WebInspector.resourceTypes.Other )
192 return this._createEmptyWidget(); 195 return this._createEmptyWidget();
193 196
194 return WebInspector.RequestView.nonSourceViewForRequest(this.request ); 197 return WebInspector.RequestView.nonSourceViewForRequest(this.request );
195 } 198 }
196 }, 199 },
197 200
198 __proto__: WebInspector.RequestContentView.prototype 201 __proto__: WebInspector.RequestContentView.prototype
199 }; 202 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698