Chromium Code Reviews| Index: components/ntp_tiles/metrics.h |
| diff --git a/components/ntp_tiles/metrics.h b/components/ntp_tiles/metrics.h |
| index e38dcc8de25a9eaa592b673b72df1058d7bc4936..eaf52b39c885820cc7b8fa4f6323e14f37fb0b01 100644 |
| --- a/components/ntp_tiles/metrics.h |
| +++ b/components/ntp_tiles/metrics.h |
| @@ -31,17 +31,24 @@ enum MostVisitedTileType { |
| NUM_TILE_TYPES, |
| }; |
| -// TODO(treib): Split into individual impressions for desktop. |
| -void RecordImpressions(const NTPTilesVector& tiles); |
| +// Records an impression of an individual tile. |
| +void RecordTileImpression(int index, NTPTileSource source); |
| +// Records an impression of the page itself, after all tiles have loaded. |
| +void RecordPageImpression(int number_of_tiles); |
| + |
| +// Records the visual types (see above) of all visible tiles. |
| void RecordImpressionTileTypes( |
| const std::vector<MostVisitedTileType>& tile_types, |
| const std::vector<NTPTileSource>& sources); |
| -// TODO(treib): Split into "base" click and tile type for desktop. |
| -void RecordClick(int index, |
| - MostVisitedTileType tile_type, |
| - NTPTileSource source); |
| +// Records a click on a tile. |
| +void RecordTileClick(int index, NTPTileSource source); |
| + |
| +// Records a click on a tile, and also the type of the tile that was clicked. |
| +void RecordTileClickWithTileType(int index, |
| + NTPTileSource source, |
| + MostVisitedTileType tile_type); |
|
sfiera
2016/10/25 12:12:11
Rather than splitting out a separate function for
Marc Treib
2016/10/25 12:23:39
Hm. We could add it to the enum, but actually reco
sfiera
2016/10/25 12:42:45
I think I'd go for it. Personally, I think touch i
Marc Treib
2016/10/25 13:26:51
Fun fact: A desktop icon NTP is actually mostly im
|
| } // namespace metrics |
| } // namespace ntp_tiles |