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 // The include directives are put into Javascript-style comments to prevent | 5 // The include directives are put into Javascript-style comments to prevent |
6 // parsing errors in non-flattened mode. The flattener still sees them. | 6 // parsing errors in non-flattened mode. The flattener still sees them. |
7 // Note that this makes the flattener to comment out the first line of the | 7 // Note that this makes the flattener to comment out the first line of the |
8 // included file but that's all right since any javascript file should start | 8 // included file but that's all right since any javascript file should start |
9 // with a copyright comment anyway. | 9 // with a copyright comment anyway. |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 //<include src="gallery_item.js"> | 70 //<include src="gallery_item.js"> |
71 //<include src="gallery_util.js"> | 71 //<include src="gallery_util.js"> |
72 //<include src="mosaic_mode.js"> | 72 //<include src="mosaic_mode.js"> |
73 //<include src="ribbon.js"> | 73 //<include src="ribbon.js"> |
74 //<include src="slide_mode.js"> | 74 //<include src="slide_mode.js"> |
75 | 75 |
76 // Exports | 76 // Exports |
77 window.ImageUtil = ImageUtil; | 77 window.ImageUtil = ImageUtil; |
78 window.ImageUtil.metrics = metrics; | 78 window.ImageUtil.metrics = metrics; |
79 window.Gallery = Gallery; | 79 window.Gallery = Gallery; |
80 window.util = util; | 80 |
| 81 window.reload = reload; // will be called by the background. |
| 82 window.gallery = gallery; // for debug. |
81 | 83 |
82 })(); | 84 })(); |
OLD | NEW |