// 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_STATIC_LOGO_SHOWN_FRESH = 31,
  // Deleted: NTP_CTA_LOGO_SHOWN_FROM_CACHE = 32,
  // Deleted: NTP_CTA_LOGO_SHOWN_FRESH = 33,
  // Deleted: NTP_CTA_LOGO_CLICKED = 35,
  // Deleted: NTP_MODULES_SHOWN = 83,

  // A static Doodle was shown, coming from cache.
  NTP_STATIC_LOGO_SHOWN_FROM_CACHE = 30,

  // A static Doodle was clicked.
  NTP_STATIC_LOGO_CLICKED = 34,
  // 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,

  // The visibility of personal shortcuts was changed.
  NTP_CUSTOMIZE_PERSONAL_SHORTCUT_TOGGLE_VISIBILITY = 85,

  // An enterprise shortcut was removed.
  NTP_CUSTOMIZE_ENTERPRISE_SHORTCUT_REMOVE = 86,
  // An enterprise shortcut action was undone.
  NTP_CUSTOMIZE_ENTERPRISE_SHORTCUT_UNDO = 87,
  // All enterprise shortcuts were restored.
  NTP_CUSTOMIZE_ENTERPRISE_SHORTCUT_RESTORE_ALL = 88,
  // An enterprise shortcut was updated.
  NTP_CUSTOMIZE_ENTERPRISE_SHORTCUT_UPDATE = 89,
  // The visibility of enterprise shortcuts was changed.
  NTP_CUSTOMIZE_ENTERPRISE_SHORTCUT_TOGGLE_VISIBILITY = 90,

  // Shortcuts were automatically removed due to inactivity.
  NTP_SHORTCUTS_AUTO_REMOVE = 91,
  // Auto-removal of shortcuts was undone.
  NTP_SHORTCUTS_AUTO_REMOVE_UNDO = 92,

  // An animated Doodle was shown, coming from cache.
  NTP_ANIMATED_LOGO_SHOWN_FROM_CACHE = 93,

  NTP_EVENT_TYPE_LAST = NTP_ANIMATED_LOGO_SHOWN_FROM_CACHE
};

#endif  // CHROME_COMMON_SEARCH_NTP_LOGGING_EVENTS_H_
