| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 'use strict'; | |
| 6 | |
| 7 /** | 5 /** |
| 8 * A namespace class for image encoding functions. All methods are static. | 6 * A namespace class for image encoding functions. All methods are static. |
| 9 */ | 7 */ |
| 10 function ImageEncoder() {} | 8 function ImageEncoder() {} |
| 11 | 9 |
| 12 /** | 10 /** |
| 13 * @type {Array.<Object>} | 11 * @type {Array.<Object>} |
| 14 */ | 12 */ |
| 15 ImageEncoder.metadataEncoders = {}; | 13 ImageEncoder.metadataEncoders = {}; |
| 16 | 14 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 findInsertionRange = function(encodedImage) { return {from: 0, to: 0}; }; | 219 findInsertionRange = function(encodedImage) { return {from: 0, to: 0}; }; |
| 222 | 220 |
| 223 /** | 221 /** |
| 224 * Return serialized metadata ready to write to an image file. | 222 * Return serialized metadata ready to write to an image file. |
| 225 * The return type is optimized for passing to Blob.append. | 223 * The return type is optimized for passing to Blob.append. |
| 226 * @return {ArrayBuffer} // TODO(JSDOC). | 224 * @return {ArrayBuffer} // TODO(JSDOC). |
| 227 */ | 225 */ |
| 228 ImageEncoder.MetadataEncoder.prototype.encode = function() { | 226 ImageEncoder.MetadataEncoder.prototype.encode = function() { |
| 229 return new Uint8Array(0).buffer; | 227 return new Uint8Array(0).buffer; |
| 230 }; | 228 }; |
| OLD | NEW |