blob: 911818dc734e8ce68c5330406c27d6705fe16d65 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361// Copyright 2017 The Chromium Authors
treib231212e2017-04-04 17:09:222// 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
8namespace 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 Astiz5774c182017-10-26 10:59:5113// histograms/enums.xml.
treib231212e2017-04-04 17:09:2214//
15// A Java counterpart will be generated for this enum.
Cathy Liac1ae09042019-06-04 23:30:4916// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.suggestions.tile
treib231212e2017-04-04 17:09:2217enum 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,
treib231212e2017-04-04 17:09:2226 // Deleted: THUMBNAIL_LOCAL = 4
27 // Deleted: THUMBNAIL_SERVER = 5
28 // Deleted: THUMBNAIL_DEFAULT = 6
Kristi Parkfd43f7d2019-09-13 19:29:0429 // Deleted: THUMBNAIL = 7
30 // Deleted: THUMBNAIL_FAILED = 8
treib80f51222017-04-07 07:59:3631 // The maximum tile type value that gets recorded in UMA.
Kristi Parkfd43f7d2019-09-13 19:29:0432 LAST_RECORDED_TILE_TYPE = ICON_DEFAULT,
treib80f51222017-04-07 07:59:3633
treib231212e2017-04-04 17:09:2234 // 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,
treib80f51222017-04-07 07:59:3637
38 TILE_TYPE_MAX = UNKNOWN_TILE_TYPE
treib231212e2017-04-04 17:09:2239};
40
41} // namespace ntp_tiles
42
43#endif // COMPONENTS_NTP_TILES_TILE_VISUAL_TYPE_H_