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

Side by Side Diff: chrome/browser/resources/file_manager/js/metadata/id3_parser.js

Issue 12212185: [Cleanup] Files.app: Fill 'TODO' comments to missing descriptions in @param annotation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 importScripts('function_sequence.js'); 5 importScripts('function_sequence.js');
6 importScripts('function_parallel.js'); 6 importScripts('function_parallel.js');
7 7
8 function Id3Parser(parent) { 8 function Id3Parser(parent) {
9 MetadataParser.call(this, parent, 'id3', /\.(mp3)$/i); 9 MetadataParser.call(this, parent, 'id3', /\.(mp3)$/i);
10 } 10 }
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } else { 169 } else {
170 frame.imageUrl = reader.readImage(end - reader.tell()); 170 frame.imageUrl = reader.readImage(end - reader.tell());
171 } 171 }
172 }; 172 };
173 173
174 /** 174 /**
175 * Reads string from reader with specified encoding 175 * Reads string from reader with specified encoding
176 * 176 *
177 * @private 177 * @private
178 * @param {ByteReader} reader reader to use. 178 * @param {ByteReader} reader reader to use.
179 * @param {number} majorVersion //TODO(JSDOC).
179 * @return {Object} frame read. 180 * @return {Object} frame read.
180 */ 181 */
181 Id3Parser.prototype.readFrame_ = function(reader, majorVersion) { 182 Id3Parser.prototype.readFrame_ = function(reader, majorVersion) {
182 if (reader.eof()) 183 if (reader.eof())
183 return null; 184 return null;
184 185
185 var frame = {}; 186 var frame = {};
186 187
187 reader.pushSeek(reader.tell(), ByteReader.SEEK_BEG); 188 reader.pushSeek(reader.tell(), ByteReader.SEEK_BEG);
188 189
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 TYER: 'ID3_YEAR', 697 TYER: 'ID3_YEAR',
697 WCOP: 'ID3_COPYRIGHT', 698 WCOP: 'ID3_COPYRIGHT',
698 WOAF: 'ID3_OFFICIAL_AUDIO_FILE_WEBPAGE', 699 WOAF: 'ID3_OFFICIAL_AUDIO_FILE_WEBPAGE',
699 WOAR: 'ID3_OFFICIAL_ARTIST', 700 WOAR: 'ID3_OFFICIAL_ARTIST',
700 WOAS: 'ID3_OFFICIAL_AUDIO_SOURCE_WEBPAGE', 701 WOAS: 'ID3_OFFICIAL_AUDIO_SOURCE_WEBPAGE',
701 WPUB: 'ID3_PUBLISHERS_OFFICIAL_WEBPAGE' 702 WPUB: 'ID3_PUBLISHERS_OFFICIAL_WEBPAGE'
702 } 703 }
703 }; 704 };
704 705
705 MetadataDispatcher.registerParserClass(Id3Parser); 706 MetadataDispatcher.registerParserClass(Id3Parser);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698