| OLD | NEW |
| 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 // Single iframe for NTP tiles. | 5 // Single iframe for NTP tiles. |
| 6 (function() { | 6 (function() { |
| 7 'use strict'; | 7 'use strict'; |
| 8 | 8 |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 * The different (visual) types that an NTP tile can have. | 44 * The different (visual) types that an NTP tile can have. |
| 45 * Note: Keep in sync with components/ntp_tiles/tile_visual_type.h | 45 * Note: Keep in sync with components/ntp_tiles/tile_visual_type.h |
| 46 * @enum {number} | 46 * @enum {number} |
| 47 * @const | 47 * @const |
| 48 */ | 48 */ |
| 49 var TileVisualType = { | 49 var TileVisualType = { |
| 50 NONE: 0, | 50 NONE: 0, |
| 51 ICON_REAL: 1, | 51 ICON_REAL: 1, |
| 52 ICON_COLOR: 2, | 52 ICON_COLOR: 2, |
| 53 ICON_DEFAULT: 3, | 53 ICON_DEFAULT: 3, |
| 54 THUMBNAIL: 4, | 54 THUMBNAIL: 7, |
| 55 THUMBNAIL_FAILED: 5, | 55 THUMBNAIL_FAILED: 8, |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 | 58 |
| 59 /** | 59 /** |
| 60 * Total number of tiles to show at any time. If the host page doesn't send | 60 * Total number of tiles to show at any time. If the host page doesn't send |
| 61 * enough tiles, we fill them blank. | 61 * enough tiles, we fill them blank. |
| 62 * @const {number} | 62 * @const {number} |
| 63 */ | 63 */ |
| 64 var NUMBER_OF_TILES = 8; | 64 var NUMBER_OF_TILES = 8; |
| 65 | 65 |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 var html = document.querySelector('html'); | 547 var html = document.querySelector('html'); |
| 548 html.dir = 'rtl'; | 548 html.dir = 'rtl'; |
| 549 } | 549 } |
| 550 | 550 |
| 551 window.addEventListener('message', handlePostMessage); | 551 window.addEventListener('message', handlePostMessage); |
| 552 }; | 552 }; |
| 553 | 553 |
| 554 | 554 |
| 555 window.addEventListener('DOMContentLoaded', init); | 555 window.addEventListener('DOMContentLoaded', init); |
| 556 })(); | 556 })(); |
| OLD | NEW |