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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/metadata/metadata_item.js

Issue 2527853002: Remove unused *Error fields in MetadataItem. (Closed)
Patch Set: Rebased. Created 4 years 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
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/metadata/content_metadata_provider.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @typedef {{ 6 * @typedef {{
7 * scaleX: number, 7 * scaleX: number,
8 * scaleY: number, 8 * scaleY: number,
9 * rotate90: number 9 * rotate90: number
10 * }} 10 * }}
11 */ 11 */
12 var ImageTransformation; 12 var ImageTransformation;
13 13
14 /** 14 /**
15 * Each property of MetadataItem has error property also. 15 * Metadata of a file.
16 * @constructor 16 * @constructor
17 * @struct 17 * @struct
18 */ 18 */
19 function MetadataItem() { 19 function MetadataItem() {
20 /** 20 /**
21 * Size of the file. -1 for directory. 21 * Size of the file. -1 for directory.
22 * @public {number|undefined} 22 * @public {number|undefined}
23 */ 23 */
24 this.size; 24 this.size;
25 25
26 /** 26 /**
27 * @public {Error|undefined}
28 */
29 this.sizeError;
30
31 /**
32 * @public {!Date|undefined} 27 * @public {!Date|undefined}
33 */ 28 */
34 this.modificationTime; 29 this.modificationTime;
35 30
36 /** 31 /**
37 * @public {Error|undefined}
38 */
39 this.modificationTimeError;
40
41 /**
42 * Thumbnail URL obtained from external provider. 32 * Thumbnail URL obtained from external provider.
43 * @public {string|undefined} 33 * @public {string|undefined}
44 */ 34 */
45 this.thumbnailUrl; 35 this.thumbnailUrl;
46 36
47 /** 37 /**
48 * Cropped thumbnail URL obtained from external provider. 38 * Cropped thumbnail URL obtained from external provider.
49 * @public {string|undefined} 39 * @public {string|undefined}
50 */ 40 */
51 this.croppedThumbnailUrl; 41 this.croppedThumbnailUrl;
52 42
53 /** 43 /**
54 * @public {Error|undefined} 44 * @public {Error|undefined}
55 */ 45 */
56 this.thumbnailUrlError; 46 this.thumbnailUrlError;
57 47
58 /** 48 /**
59 * @public {number|undefined} 49 * @public {number|undefined}
60 */ 50 */
61 this.imageWidth; 51 this.imageWidth;
62 52
63 /** 53 /**
64 * @public {Error|undefined}
65 */
66 this.imageWidthError;
67
68 /**
69 * @public {number|undefined} 54 * @public {number|undefined}
70 */ 55 */
71 this.imageHeight; 56 this.imageHeight;
72 57
73 /** 58 /**
74 * @public {Error|undefined}
75 */
76 this.imageHeightError;
77
78 /**
79 * @public {number|undefined} 59 * @public {number|undefined}
80 */ 60 */
81 this.imageRotation; 61 this.imageRotation;
82 62
83 /** 63 /**
84 * @public {Error|undefined}
85 */
86 this.imageRotationError;
87
88 /**
89 * Thumbnail obtained from content provider. 64 * Thumbnail obtained from content provider.
90 * @public {string|undefined} 65 * @public {string|undefined}
91 */ 66 */
92 this.contentThumbnailUrl; 67 this.contentThumbnailUrl;
93 68
94 /** 69 /**
95 * @public {Error|undefined} 70 * @public {Error|undefined}
96 */ 71 */
97 this.contentThumbnailUrlError; 72 this.contentThumbnailUrlError;
98 73
(...skipping 19 matching lines...) Expand all
118 */ 93 */
119 this.contentImageTransformError; 94 this.contentImageTransformError;
120 95
121 /** 96 /**
122 * Whether the entry is pinned for ensuring it is available offline. 97 * Whether the entry is pinned for ensuring it is available offline.
123 * @public {boolean|undefined} 98 * @public {boolean|undefined}
124 */ 99 */
125 this.pinned; 100 this.pinned;
126 101
127 /** 102 /**
128 * @public {Error|undefined}
129 */
130 this.pinnedError;
131
132 /**
133 * Whether the entry is cached locally. 103 * Whether the entry is cached locally.
134 * @public {boolean|undefined} 104 * @public {boolean|undefined}
135 */ 105 */
136 this.present; 106 this.present;
137 107
138 /** 108 /**
139 * @public {Error|undefined} 109 * @public {Error|undefined}
140 */ 110 */
141 this.presentError; 111 this.presentError;
142 112
143 /** 113 /**
144 * Whether the entry is hosted document of google drive. 114 * Whether the entry is hosted document of google drive.
145 * @public {boolean|undefined} 115 * @public {boolean|undefined}
146 */ 116 */
147 this.hosted; 117 this.hosted;
148 118
149 /** 119 /**
150 * @public {Error|undefined}
151 */
152 this.hostedError;
153
154 /**
155 * Whether the entry is modified locally and not synched yet. 120 * Whether the entry is modified locally and not synched yet.
156 * @public {boolean|undefined} 121 * @public {boolean|undefined}
157 */ 122 */
158 this.dirty; 123 this.dirty;
159 124
160 /** 125 /**
161 * @public {Error|undefined}
162 */
163 this.dirtyError;
164
165 /**
166 * Whether the entry is present or hosted; 126 * Whether the entry is present or hosted;
167 * @public {boolean|undefined} 127 * @public {boolean|undefined}
168 */ 128 */
169 this.availableOffline; 129 this.availableOffline;
170 130
171 /** 131 /**
172 * @public {Error|undefined}
173 */
174 this.availableOfflineError;
175
176 /**
177 * @public {boolean|undefined} 132 * @public {boolean|undefined}
178 */ 133 */
179 this.availableWhenMetered; 134 this.availableWhenMetered;
180 135
181 /** 136 /**
182 * @public {Error|undefined}
183 */
184 this.availableWhenMeteredError;
185
186 /**
187 * @public {string|undefined} 137 * @public {string|undefined}
188 */ 138 */
189 this.customIconUrl; 139 this.customIconUrl;
190 140
191 /** 141 /**
192 * @public {Error|undefined} 142 * @public {Error|undefined}
193 */ 143 */
194 this.customIconUrlError; 144 this.customIconUrlError;
195 145
196 /** 146 /**
197 * @public {string|undefined} 147 * @public {string|undefined}
198 */ 148 */
199 this.contentMimeType; 149 this.contentMimeType;
200 150
201 /** 151 /**
202 * @public {Error|undefined}
203 */
204 this.contentMimeTypeError;
205
206 /**
207 * Whether the entry is shared explicitly with me. 152 * Whether the entry is shared explicitly with me.
208 * @public {boolean|undefined} 153 * @public {boolean|undefined}
209 */ 154 */
210 this.sharedWithMe; 155 this.sharedWithMe;
211 156
212 /** 157 /**
213 * @public {Error|undefined}
214 */
215 this.sharedWithMeError;
216
217 /**
218 * Whether the entry is shared publicly. 158 * Whether the entry is shared publicly.
219 * @public {boolean|undefined} 159 * @public {boolean|undefined}
220 */ 160 */
221 this.shared; 161 this.shared;
222 162
223 /** 163 /**
224 * @public {Error|undefined}
225 */
226 this.sharedError;
227
228 /**
229 * URL for open a file in browser tab. 164 * URL for open a file in browser tab.
230 * @public {string|undefined} 165 * @public {string|undefined}
231 */ 166 */
232 this.externalFileUrl; 167 this.externalFileUrl;
233 168
234 /** 169 /**
235 * @public {Error|undefined}
236 */
237 this.externalFileUrlError;
238
239 /**
240 * @public {string|undefined} 170 * @public {string|undefined}
241 */ 171 */
242 this.mediaAlbum; 172 this.mediaAlbum;
243 173
244 /** 174 /**
245 * @public {Error|undefined}
246 */
247 this.mediaAlbumError;
248
249 /**
250 * @public {string|undefined} 175 * @public {string|undefined}
251 */ 176 */
252 this.mediaTitle; 177 this.mediaTitle;
253 178
254 /** 179 /**
255 * @public {Error|undefined}
256 */
257 this.mediaTitleError;
258
259 /**
260 * @public {string|undefined} 180 * @public {string|undefined}
261 */ 181 */
262 this.mediaArtist; 182 this.mediaArtist;
263 183
264 /** 184 /**
265 * @public {Error|undefined}
266 */
267 this.mediaArtistError;
268
269 /**
270 * Mime type obtained by content provider based on URL. 185 * Mime type obtained by content provider based on URL.
271 * TODO(hirono): Remove the mediaMimeType. 186 * TODO(hirono): Remove the mediaMimeType.
272 * @public {string|undefined} 187 * @public {string|undefined}
273 */ 188 */
274 this.mediaMimeType; 189 this.mediaMimeType;
275 190
276 /** 191 /**
277 * @public {Error|undefined}
278 */
279 this.mediaMimeTypeError;
280
281 /**
282 * "Image File Directory" obtained from EXIF header. 192 * "Image File Directory" obtained from EXIF header.
283 * @public {!Object|undefined} 193 * @public {!Object|undefined}
284 */ 194 */
285 this.ifd; 195 this.ifd;
286 196
287 /** 197 /**
288 * @public {Error|undefined}
289 */
290 this.ifdError;
291
292 /**
293 * @public {boolean|undefined} 198 * @public {boolean|undefined}
294 */ 199 */
295 this.exifLittleEndian; 200 this.exifLittleEndian;
296
297 /**
298 * @public {Error|undefined}
299 */
300 this.exifLittleEndianError;
301 } 201 }
OLDNEW
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/metadata/content_metadata_provider.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698