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

Side by Side Diff: components/ntp_tiles/tile_visual_type.h

Issue 2790463003: ntp_tiles: Cleanup enum names (Closed)
Patch Set: android 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698