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 { |
| 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 |
| 30 // Deleted: THUMBNAIL_LOCAL = 4 |
| 31 // Deleted: THUMBNAIL_SERVER = 5 |
| 32 // Deleted: THUMBNAIL_DEFAULT = 6 |
| 33 |
| 34 // The item displays a thumbnail of the page. Used on desktop. |
| 35 THUMBNAIL, |
| 36 // The tile type has not been determined yet. Used on iOS, until we can detect |
| 37 // when all tiles have loaded. |
| 38 UNKNOWN_TILE_TYPE, |
| 39 }; |
| 40 |
| 41 } // namespace ntp_tiles |
| 42 |
| 43 #endif // COMPONENTS_NTP_TILES_TILE_VISUAL_TYPE_H_ |
OLD | NEW |