Index: components/ntp_tiles/tile_visual_type.h |
diff --git a/components/ntp_tiles/tile_visual_type.h b/components/ntp_tiles/tile_visual_type.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bf1d84fb9e5621c431677ac3531cba0652ec06e6 |
--- /dev/null |
+++ b/components/ntp_tiles/tile_visual_type.h |
@@ -0,0 +1,38 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_NTP_TILES_TILE_VISUAL_TYPE_H_ |
+#define COMPONENTS_NTP_TILES_TILE_VISUAL_TYPE_H_ |
+ |
+namespace ntp_tiles { |
+ |
+// The visual type of an NTP tile. |
+// |
+// These values must stay in sync with the NTPTileVisualType enum in |
+// histograms.xml. |
+// |
+// A Java counterpart will be generated for this enum. |
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.suggestions |
+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
|
+ // The icon or thumbnail hasn't loaded yet. |
+ NONE = 0, |
+ // The item displays a site's actual favicon or touch icon. |
+ ICON_REAL = 1, |
+ // The item displays a color derived from the site's favicon or touch icon. |
+ ICON_COLOR = 2, |
+ // The item displays a default gray box in place of an icon. |
+ ICON_DEFAULT = 3, |
+ // The number of different tile types that get recorded. Entries below this |
+ // are not recorded in UMA. |
+ NUM_RECORDED_TILE_TYPES, |
+ // The item displays a thumbnail of the page. Used on desktop. |
+ THUMBNAIL, |
+ // The tile type has not been determined yet. Used on iOS, until we can detect |
+ // when all tiles have loaded. |
+ UNKNOWN_TILE_TYPE, |
+}; |
+ |
+} // namespace ntp_tiles |
+ |
+#endif // COMPONENTS_NTP_TILES_TILE_VISUAL_TYPE_H_ |