Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | // Copyright 2017 The Chromium Authors |
treib | 231212e | 2017-04-04 17:09:22 | [diff] [blame] | 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 |
Mikel Astiz | 5774c18 | 2017-10-26 10:59:51 | [diff] [blame] | 13 | // histograms/enums.xml. |
treib | 231212e | 2017-04-04 17:09:22 | [diff] [blame] | 14 | // |
| 15 | // A Java counterpart will be generated for this enum. |
Cathy Li | ac1ae0904 | 2019-06-04 23:30:49 | [diff] [blame] | 16 | // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.suggestions.tile |
treib | 231212e | 2017-04-04 17:09:22 | [diff] [blame] | 17 | enum TileVisualType { |
| 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, |
treib | 231212e | 2017-04-04 17:09:22 | [diff] [blame] | 26 | // Deleted: THUMBNAIL_LOCAL = 4 |
| 27 | // Deleted: THUMBNAIL_SERVER = 5 |
| 28 | // Deleted: THUMBNAIL_DEFAULT = 6 |
Kristi Park | fd43f7d | 2019-09-13 19:29:04 | [diff] [blame] | 29 | // Deleted: THUMBNAIL = 7 |
| 30 | // Deleted: THUMBNAIL_FAILED = 8 |
treib | 80f5122 | 2017-04-07 07:59:36 | [diff] [blame] | 31 | // The maximum tile type value that gets recorded in UMA. |
Kristi Park | fd43f7d | 2019-09-13 19:29:04 | [diff] [blame] | 32 | LAST_RECORDED_TILE_TYPE = ICON_DEFAULT, |
treib | 80f5122 | 2017-04-07 07:59:36 | [diff] [blame] | 33 | |
treib | 231212e | 2017-04-04 17:09:22 | [diff] [blame] | 34 | // The tile type has not been determined yet. Used on iOS, until we can detect |
| 35 | // when all tiles have loaded. |
| 36 | UNKNOWN_TILE_TYPE, |
treib | 80f5122 | 2017-04-07 07:59:36 | [diff] [blame] | 37 | |
| 38 | TILE_TYPE_MAX = UNKNOWN_TILE_TYPE |
treib | 231212e | 2017-04-04 17:09:22 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | } // namespace ntp_tiles |
| 42 | |
| 43 | #endif // COMPONENTS_NTP_TILES_TILE_VISUAL_TYPE_H_ |