OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_NTP_TILES_TILE_VISUAL_TYPE_H_ | |
6 #define COMPONENTS_NTP_TILES_TILE_VISUAL_TYPE_H_ | |
7 | |
8 namespace ntp_tiles { | |
9 | |
10 // The visual type of an NTP tile. | |
11 // | |
12 // These values must stay in sync with the NTPTileVisualType enum in | |
13 // histograms.xml. | |
14 // | |
15 // A Java counterpart will be generated for this enum. | |
16 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.suggestions | |
17 enum TileVisualType { | |
sfiera
2017/04/03 13:38:10
Now that this is in the ntp_tiles namespace, shoul
Marc Treib
2017/04/03 13:52:01
I thought about it, but the UMA_HISTOGRAM macros d
| |
18 // The icon or thumbnail hasn't loaded yet. | |
19 NONE = 0, | |
20 // The item displays a site's actual favicon or touch icon. | |
21 ICON_REAL = 1, | |
22 // The item displays a color derived from the site's favicon or touch icon. | |
23 ICON_COLOR = 2, | |
24 // The item displays a default gray box in place of an icon. | |
25 ICON_DEFAULT = 3, | |
26 // The number of different tile types that get recorded. Entries below this | |
27 // are not recorded in UMA. | |
28 NUM_RECORDED_TILE_TYPES, | |
29 // The item displays a thumbnail of the page. Used on desktop. | |
30 THUMBNAIL, | |
31 // The tile type has not been determined yet. Used on iOS, until we can detect | |
32 // when all tiles have loaded. | |
33 UNKNOWN_TILE_TYPE, | |
34 }; | |
35 | |
36 } // namespace ntp_tiles | |
37 | |
38 #endif // COMPONENTS_NTP_TILES_TILE_VISUAL_TYPE_H_ | |
OLD | NEW |