File: ntp_logging_events.h

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (163 lines) | stat: -rw-r--r-- 6,761 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_
#define CHROME_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_

// The different types of events that are logged from the NTP. This enum is used
// to transfer information from the NTP javascript to the renderer and is *not*
// used as a UMA enum histogram's logged value.
// Note: Keep in sync with browser/resources/local_ntp/local_ntp.js, voice.js,
// most_visited_single.js, and custom_backgrounds.js.
enum NTPLoggingEventType {
  // Deleted: NTP_SERVER_SIDE_SUGGESTION = 0,
  // Deleted: NTP_CLIENT_SIDE_SUGGESTION = 1,
  // Deleted: NTP_TILE = 2,
  // Deleted: NTP_THUMBNAIL_TILE = 3,
  // Deleted: NTP_GRAY_TILE = 4,
  // Deleted: NTP_EXTERNAL_TILE = 5,
  // Deleted: NTP_THUMBNAIL_ERROR = 6,
  // Deleted: NTP_GRAY_TILE_FALLBACK = 7,
  // Deleted: NTP_EXTERNAL_TILE_FALLBACK = 8,
  // Deleted: NTP_MOUSEOVER = 9
  // Deleted: NTP_TILE_LOADED = 10,
  // Deleted: NTP_ALL_TILES_LOADED = 11,
  // Deleted: NTP_ALL_TILES_RECEIVED = 12,
  // Deleted: NTP_VOICE_ACTION_ACTIVATE_SEARCH_BOX = 13,
  // Deleted: NTP_VOICE_ACTION_ACTIVATE_KEYBOARD = 14,
  // Deleted: NTP_VOICE_ACTION_CLOSE_OVERLAY = 15,
  // Deleted: NTP_VOICE_ACTION_QUERY_SUBMITTED = 16,
  // Deleted: NTP_VOICE_ACTION_SUPPORT_LINK_CLICKED = 17,
  // Deleted: NTP_VOICE_ACTION_TRY_AGAIN_LINK = 18,
  // Deleted: NTP_VOICE_ACTION_TRY_AGAIN_MIC_BUTTON = 19,
  // Deleted: NTP_VOICE_ERROR_NO_SPEECH = 20,
  // Deleted: NTP_VOICE_ERROR_ABORTED = 21,
  // Deleted: NTP_VOICE_ERROR_AUDIO_CAPTURE = 22,
  // Deleted: NTP_VOICE_ERROR_NETWORK = 23,
  // Deleted: NTP_VOICE_ERROR_NOT_ALLOWED = 24,
  // Deleted: NTP_VOICE_ERROR_SERVICE_NOT_ALLOWED = 25,
  // Deleted: NTP_VOICE_ERROR_BAD_GRAMMAR = 26,
  // Deleted: NTP_VOICE_ERROR_LANGUAGE_NOT_SUPPORTED = 27,
  // Deleted: NTP_VOICE_ERROR_NO_MATCH = 28,
  // Deleted: NTP_VOICE_ERROR_OTHER = 29,
  // Deleted: NTP_MODULES_SHOWN = 83,

  // A static Doodle was shown, coming from cache.
  NTP_STATIC_LOGO_SHOWN_FROM_CACHE = 30,
  // A static Doodle was shown, coming from the network.
  NTP_STATIC_LOGO_SHOWN_FRESH = 31,
  // A call-to-action Doodle image was shown, coming from cache.
  NTP_CTA_LOGO_SHOWN_FROM_CACHE = 32,
  // A call-to-action Doodle image was shown, coming from the network.
  NTP_CTA_LOGO_SHOWN_FRESH = 33,

  // A static Doodle was clicked.
  NTP_STATIC_LOGO_CLICKED = 34,
  // A call-to-action Doodle was clicked.
  NTP_CTA_LOGO_CLICKED = 35,
  // An animated Doodle was clicked.
  NTP_ANIMATED_LOGO_CLICKED = 36,

  // The One Google Bar was shown.
  NTP_ONE_GOOGLE_BAR_SHOWN = 37,

  // The NTP background has been customized with an image.
  NTP_BACKGROUND_CUSTOMIZED = 38,
  // Shortcuts have been customized on the NTP.
  NTP_SHORTCUT_CUSTOMIZED = 39,

  // Deleted: NTP_CUSTOMIZE_CHROME_BACKGROUNDS_CLICKED = 40,
  // Deleted: NTP_CUSTOMIZE_LOCAL_IMAGE_CLICKED = 41,
  // Deleted: NTP_CUSTOMIZE_RESTORE_BACKGROUND_CLICKED = 42,
  // Deleted: NTP_CUSTOMIZE_ATTRIBUTION_CLICKED = 43,
  // Deleted: NTP_CUSTOMIZE_ADD_SHORTCUT_CLICKED = 44,
  // Deleted: NTP_CUSTOMIZE_EDIT_SHORTCUT_CLICKED = 45,
  // Deleted: NTP_CUSTOMIZE_RESTORE_SHORTCUTS_CLICKED = 46,

  // A collection was selected in the 'Chrome backgrounds' dialog.
  NTP_CUSTOMIZE_CHROME_BACKGROUND_SELECT_COLLECTION = 47,
  // An image was selected in the 'Chrome backgrounds' dialog.
  NTP_CUSTOMIZE_CHROME_BACKGROUND_SELECT_IMAGE = 48,
  // 'Cancel' was clicked in the 'Chrome backgrounds' dialog.
  NTP_CUSTOMIZE_CHROME_BACKGROUND_CANCEL = 49,
  // 'Done' was clicked in the 'Chrome backgrounds' dialog.
  NTP_CUSTOMIZE_CHROME_BACKGROUND_DONE = 50,

  // 'Cancel' was clicked in the 'Upload an image' dialog.
  NTP_CUSTOMIZE_LOCAL_IMAGE_CANCEL = 51,
  // 'Done' was clicked in the 'Upload an image' dialog.
  NTP_CUSTOMIZE_LOCAL_IMAGE_DONE = 52,

  // A custom shortcut was removed.
  NTP_CUSTOMIZE_SHORTCUT_REMOVE = 53,
  // 'Cancel' was clicked in the 'Edit shortcut' dialog.
  NTP_CUSTOMIZE_SHORTCUT_CANCEL = 54,
  // 'Done' was clicked in the 'Edit shortcut' dialog.
  NTP_CUSTOMIZE_SHORTCUT_DONE = 55,
  // A custom shortcut action was undone.
  NTP_CUSTOMIZE_SHORTCUT_UNDO = 56,
  // All custom shortcuts were restored.
  NTP_CUSTOMIZE_SHORTCUT_RESTORE_ALL = 57,
  // A custom shortcut was added.
  NTP_CUSTOMIZE_SHORTCUT_ADD = 58,
  // A custom shortcut was updated.
  NTP_CUSTOMIZE_SHORTCUT_UPDATE = 59,

  // A middle slot promo was shown.
  NTP_MIDDLE_SLOT_PROMO_SHOWN = 60,
  // A promo link was clicked.
  NTP_MIDDLE_SLOT_PROMO_LINK_CLICKED = 61,

  // The shortcut type displayed (i.e. Most Visited or custom links) was
  // changed.
  NTP_CUSTOMIZE_SHORTCUT_TOGGLE_TYPE = 62,
  // The visibility of shortcuts was changed.
  NTP_CUSTOMIZE_SHORTCUT_TOGGLE_VISIBILITY = 63,

  // The richer picker was opened.
  NTP_CUSTOMIZATION_MENU_OPENED = 64,
  // 'Cancel' was clicked in the richer picker.
  NTP_CUSTOMIZATION_MENU_CANCEL = 65,
  // 'Done' was clicked in the richer picker.
  NTP_CUSTOMIZATION_MENU_DONE = 66,

  // 'Upload from device' was selected in the richer picker.
  NTP_BACKGROUND_UPLOAD_FROM_DEVICE = 67,
  // A collection tile was selected in the richer picker.
  NTP_BACKGROUND_OPEN_COLLECTION = 68,
  // A image tile was selected in the richer picker.
  NTP_BACKGROUND_SELECT_IMAGE = 69,
  // An image was set as the NTP background.
  NTP_BACKGROUND_IMAGE_SET = 71,
  // The back arrow was clicked in the richer picker.
  NTP_BACKGROUND_BACK_CLICK = 72,
  // The 'No background' tile was selected in the richer picker.
  NTP_BACKGROUND_DEFAULT_SELECTED = 73,
  // 'Cancel' was clicked in the image selection dialog.
  NTP_BACKGROUND_UPLOAD_CANCEL = 75,
  // 'Done' was clicked in the image selection dialog.
  NTP_BACKGROUND_UPLOAD_DONE = 76,
  // The NTP background image was reset in the richer picker.
  NTP_BACKGROUND_IMAGE_RESET = 77,

  // The 'My shortcuts' (i.e. custom links) option was clicked in the richer
  // picker.
  NTP_CUSTOMIZE_SHORTCUT_CUSTOM_LINKS_CLICKED = 78,
  // The 'Most visited sites' option was clicked in the richer picker.
  NTP_CUSTOMIZE_SHORTCUT_MOST_VISITED_CLICKED = 79,
  // The 'Hide shortcuts' toggle was clicked in the richer picker.
  NTP_CUSTOMIZE_SHORTCUT_VISIBILITY_TOGGLE_CLICKED = 80,

  // The 'refresh daily' toggle was licked in the richer picker.
  NTP_BACKGROUND_REFRESH_TOGGLE_CLICKED = 81,
  // Daily refresh was enabled by clicked 'Done' in the richer picker.
  NTP_BACKGROUND_DAILY_REFRESH_ENABLED = 82,

  // The NTP <ntp-app> element was created and ready() was called.
  NTP_APP_RENDERED = 84,

  NTP_EVENT_TYPE_LAST = NTP_APP_RENDERED
};

#endif  // CHROME_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_