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

Side by Side Diff: Source/devtools/front_end/source_frame/ResourceView.js

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased patch Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) IBM Corp. 2009 All rights reserved. 3 * Copyright (C) IBM Corp. 2009 All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 { 60 {
61 if (resource.type.isTextType()) 61 if (resource.type.isTextType())
62 return true; 62 return true;
63 if (resource.type === WebInspector.resourceTypes.Other) 63 if (resource.type === WebInspector.resourceTypes.Other)
64 return !!resource.content && !resource.contentEncoded; 64 return !!resource.content && !resource.contentEncoded;
65 return false; 65 return false;
66 } 66 }
67 67
68 /** 68 /**
69 * @param {!WebInspector.Resource} resource 69 * @param {!WebInspector.Resource} resource
70 * @return {!WebInspector.ResourceView}
70 */ 71 */
71 WebInspector.ResourceView.nonSourceViewForResource = function(resource) 72 WebInspector.ResourceView.nonSourceViewForResource = function(resource)
72 { 73 {
73 switch (resource.type) { 74 switch (resource.type) {
74 case WebInspector.resourceTypes.Image: 75 case WebInspector.resourceTypes.Image:
75 return new WebInspector.ImageView(resource); 76 return new WebInspector.ImageView(resource);
76 case WebInspector.resourceTypes.Font: 77 case WebInspector.resourceTypes.Font:
77 return new WebInspector.FontView(resource); 78 return new WebInspector.FontView(resource);
78 default: 79 default:
79 return new WebInspector.ResourceView(resource); 80 return new WebInspector.ResourceView(resource);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 /** 131 /**
131 * @param {?string} content 132 * @param {?string} content
132 */ 133 */
133 _contentLoaded: function(content) 134 _contentLoaded: function(content)
134 { 135 {
135 this._content.textContent = content; 136 this._content.textContent = content;
136 }, 137 },
137 138
138 __proto__: WebInspector.VBox.prototype 139 __proto__: WebInspector.VBox.prototype
139 } 140 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/settings/SettingsScreen.js ('k') | Source/devtools/front_end/sources/JavaScriptSourceFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698