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

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

Issue 2117373002: Cleanup: Change LogMostVisitedImpression|Navigation APIs to take an enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ntp_uma_cleanup
Patch Set: TODO Created 4 years, 5 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
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. This enum is used 8 // The different types of events that are logged from the NTP. This enum is used
9 // to transfer information from the NTP javascript to the renderer and is not 9 // to transfer information from the NTP javascript to the renderer and is not
10 // used as a UMA enum histogram's logged value. 10 // used as a UMA enum histogram's logged value.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // The user moused over an NTP tile or title. 43 // The user moused over an NTP tile or title.
44 NTP_MOUSEOVER = 9, 44 NTP_MOUSEOVER = 9,
45 45
46 // A NTP Tile has finished loading (successfully or failing). 46 // A NTP Tile has finished loading (successfully or failing).
47 NTP_TILE_LOADED = 10, 47 NTP_TILE_LOADED = 10,
48 48
49 NTP_EVENT_TYPE_LAST = NTP_TILE_LOADED 49 NTP_EVENT_TYPE_LAST = NTP_TILE_LOADED
50 }; 50 };
51 51
52 // The source of an NTP tile.
53 // Note: Keep in sync with browser/resources/local_ntp/most_visited_util.js and
54 // browser/resources/local_ntp/most_visited_single.js.
55 // TODO(treib): Merge this into MostVisitedSource from components/ntp_tiles.
56 enum NTPLoggingTileSource {
dcheng 2016/07/06 01:51:25 Nit: Can we make this a scoped enum, i.e. enum cla
Marc Treib 2016/07/06 08:49:06 The enum values are duplicated in JavaScript code.
Bernhard Bauer 2016/07/06 09:00:51 BUT I WANTED TO USE THE SHORT VALUES IN JAVASCRIPT
Marc Treib 2016/07/06 10:14:38 Which is still a lot less convenient (and thus mor
57 NTP_TILE_SOURCE_CLIENT = 0,
58 NTP_TILE_SOURCE_SERVER = 1,
59 NTP_TILE_SOURCE_LAST = NTP_TILE_SOURCE_SERVER
60 };
61
52 #endif // CHROME_COMMON_NTP_LOGGING_EVENTS_H_ 62 #endif // CHROME_COMMON_NTP_LOGGING_EVENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698