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

Side by Side Diff: chrome/browser/resources/local_ntp/most_visited_single.js

Issue 2832173002: NTP: Fix TileType metrics on desktop (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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,
Ilya Sherman 2017/04/21 19:58:38 I'm confused about why there is a gap in this enum
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
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 })();
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698