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

Side by Side Diff: chrome/common/ntp_logging_events.h

Issue 102433009: Most visited iframe now postMessage to signal the iframing page that the link has been displayed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding server0 to histogram.xml. Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_NTP_LOGGING_EVENTS_H_ 5 #ifndef CHROME_COMMON_NTP_LOGGING_EVENTS_H_
6 #define CHROME_COMMON_NTP_LOGGING_EVENTS_H_ 6 #define CHROME_COMMON_NTP_LOGGING_EVENTS_H_
7 7
8 // The different types of events that are logged from the NTP. 8 // The different types of events that are logged from the NTP.
Alexei Svitkine (slow) 2014/01/16 19:50:30 Nit: Might be worth expanding the comment to menti
beaudoin 2014/01/17 03:51:46 Done.
9 enum NTPLoggingEventType { 9 enum NTPLoggingEventType {
10 // The user moused over an NTP tile or title. 10 // The suggestion is coming from the server.
11 NTP_MOUSEOVER = 0, 11 NTP_SERVER_SIDE_SUGGESTION = 0,
12 12
13 // The page attempted to load a thumbnail image. 13 // The suggestion is coming from the client.
14 NTP_THUMBNAIL_ATTEMPT = 1, 14 NTP_CLIENT_SIDE_SUGGESTION = 1,
15
16 // Indicates a tile was rendered, no matter if it's a thumbnail, a gray tile
17 // or an external tile.
18 NTP_TILE = 2,
19
20 // The tile uses a local thumbnail image.
21 NTP_THUMBNAIL_TILE = 3,
22
23 // Used when no thumbnail is specified and a gray tile with the domain is used
24 // as the main tile.
25 NTP_GRAY_TILE = 4,
26
27 // The visuals of that tile are handled externally by the page itself.
28 NTP_EXTERNAL_TILE = 5,
15 29
16 // There was an error in loading both the thumbnail image and the fallback 30 // There was an error in loading both the thumbnail image and the fallback
17 // (if it was provided), resulting in a grey tile. 31 // (if it was provided), resulting in a grey tile.
18 NTP_THUMBNAIL_ERROR = 2, 32 NTP_THUMBNAIL_ERROR = 6,
19 33
20 // The page attempted to load a thumbnail URL while a fallback thumbnail was 34 // Used a gray tile with the domain as the fallback for a failed thumbnail.
21 // provided. 35 NTP_GRAY_TILE_FALLBACK = 7,
22 NTP_FALLBACK_THUMBNAIL_REQUESTED = 3,
23 36
24 // The primary thumbnail image failed to load and caused us to use the 37 // The visuals of that tile's fallback are handled externally.
25 // secondary thumbnail as a fallback. 38 NTP_EXTERNAL_TILE_FALLBACK = 8,
26 NTP_FALLBACK_THUMBNAIL_USED = 4,
27 39
28 // The suggestion is coming from the server. 40 // The user moused over an NTP tile or title.
29 NTP_SERVER_SIDE_SUGGESTION = 5, 41 NTP_MOUSEOVER = 9,
30
31 // The suggestion is coming from the client.
32 NTP_CLIENT_SIDE_SUGGESTION = 6,
33
34 // The visuals of that tile are handled externally by the page itself.
35 NTP_EXTERNAL_TILE = 7,
36 42
37 NTP_NUM_EVENT_TYPES 43 NTP_NUM_EVENT_TYPES
38 }; 44 };
39 45
40 #endif // CHROME_COMMON_NTP_LOGGING_EVENTS_H_ 46 #endif // CHROME_COMMON_NTP_LOGGING_EVENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698