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

Side by Side Diff: ui/file_manager/gallery/js/image_editor/exif_encoder.js

Issue 676633002: Remove file-level 'use strict' from file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 // 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 // TODO:(kaznacheev) Share the EXIF constants with exif_parser.js 5 // TODO:(kaznacheev) Share the EXIF constants with exif_parser.js
8 var EXIF_MARK_SOS = 0xffda; // Start of "stream" (the actual image data). 6 var EXIF_MARK_SOS = 0xffda; // Start of "stream" (the actual image data).
9 var EXIF_MARK_SOI = 0xffd8; // Start of image data. 7 var EXIF_MARK_SOI = 0xffd8; // Start of image data.
10 var EXIF_MARK_EOI = 0xffd9; // End of image data. 8 var EXIF_MARK_EOI = 0xffd9; // End of image data.
11 9
12 var EXIF_MARK_APP0 = 0xffe0; // APP0 block, most commonly JFIF data. 10 var EXIF_MARK_APP0 = 0xffe0; // APP0 block, most commonly JFIF data.
13 var EXIF_MARK_EXIF = 0xffe1; // Start of exif block. 11 var EXIF_MARK_EXIF = 0xffe1; // Start of exif block.
14 12
15 var EXIF_ALIGN_LITTLE = 0x4949; // Indicates little endian exif data. 13 var EXIF_ALIGN_LITTLE = 0x4949; // Indicates little endian exif data.
16 var EXIF_ALIGN_BIG = 0x4d4d; // Indicates big endian exif data. 14 var EXIF_ALIGN_BIG = 0x4d4d; // Indicates big endian exif data.
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 }; 558 };
561 559
562 /** 560 /**
563 * Check if every forward has been resolved, throw and error if not. 561 * Check if every forward has been resolved, throw and error if not.
564 */ 562 */
565 ByteWriter.prototype.checkResolved = function() { 563 ByteWriter.prototype.checkResolved = function() {
566 for (var key in this.forwards_) { 564 for (var key in this.forwards_) {
567 throw new Error('Unresolved forward pointer ' + key.toString(16)); 565 throw new Error('Unresolved forward pointer ' + key.toString(16));
568 } 566 }
569 }; 567 };
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/commands.js ('k') | ui/file_manager/gallery/js/image_editor/filter.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698