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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/Resource.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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 }, 95 },
96 96
97 /** 97 /**
98 * @return {string} 98 * @return {string}
99 */ 99 */
100 get url() 100 get url()
101 { 101 {
102 return this._url; 102 return this._url;
103 }, 103 },
104 104
105 /**
106 * @param {string} x
107 */
105 set url(x) 108 set url(x)
106 { 109 {
107 this._url = x; 110 this._url = x;
108 this._parsedURL = new WebInspector.ParsedURL(x); 111 this._parsedURL = new WebInspector.ParsedURL(x);
109 }, 112 },
110 113
111 get parsedURL() 114 get parsedURL()
112 { 115 {
113 return this._parsedURL; 116 return this._parsedURL;
114 }, 117 },
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 if (this._type.isTextType()) 350 if (this._type.isTextType())
348 return true; 351 return true;
349 if (this._type === WebInspector.resourceTypes.Other) 352 if (this._type === WebInspector.resourceTypes.Other)
350 return !!this._content && !this._contentEncoded; 353 return !!this._content && !this._contentEncoded;
351 return false; 354 return false;
352 }, 355 },
353 356
354 __proto__: WebInspector.SDKObject.prototype 357 __proto__: WebInspector.SDKObject.prototype
355 }; 358 };
356 359
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698