chromium/components/feature_engagement/public/event_constants.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/feature_engagement/public/event_constants.h"

#include "build/build_config.h"

namespace feature_engagement {

namespace events {

#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
    BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
const char kNewTabOpened[] =;
const char kSixthTabOpened[] =;
const char kTabGroupCreated[] =;
const char kClosedTabWithEightOrMore[] =;
const char kReadingListItemAdded[] =;
const char kReadingListMenuOpened[] =;
const char kBookmarkStarMenuOpened[] =;
const char kCustomizeChromeOpened[] =;

const char kMediaBackgrounded[] =;
const char kGlobalMediaControlsOpened[] =;

const char kSidePanelPinned[] =;
const char kSidePanelFromMenuShown[] =;

const char kSideSearchAutoTriggered[] =;
const char kSideSearchOpened[] =;
const char kSideSearchPageActionLabelShown[] =;

const char kTabSearchOpened[] =;

const char kWebUITabStripClosed[] =;
const char kWebUITabStripOpened[] =;

const char kDesktopNTPModuleUsed[] =;

const char kDesktopPwaInstalled[] =;

const char kFocusHelpBubbleAcceleratorPressed[] =;

const char kFocusHelpBubbleAcceleratorPromoRead[] =;

const char kBatterySaverDialogShown[] =;

// The event constant is used in Finch experiments so it is unable to be renamed
// alongside the variable name.
const char kMemorySaverDialogShown[] =;

const char kExtensionsMenuOpenedWhileExtensionHasAccess[] =;

const char kExtensionsRequestAccessButtonClicked[] =;

const char kCookieControlsBubbleShown[] =;

#endif  // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) ||
        // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)

#if BUILDFLAG(IS_IOS)
const char kChromeOpened[] = "chrome_opened";
const char kIncognitoTabOpened[] = "incognito_tab_opened";
const char kClearedBrowsingData[] = "cleared_browsing_data";
const char kViewedReadingList[] = "viewed_reading_list";
const char kViewedWhatsNew[] = "viewed_whats_new_m128";
const char kTriggeredTranslateInfobar[] = "triggered_translate_infobar";
const char kBottomToolbarOpened[] = "bottom_toolbar_opened";
const char kDiscoverFeedLoaded[] = "discover_feed_loaded";
const char kDesktopVersionRequested[] = "desktop_version_requested";
const char kDefaultSiteViewUsed[] = "default_site_view_used";
const char kOverflowMenuNoHorizontalScrollOrAction[] =
    "overflow_menu_no_horizontal_scroll_or_action";
const char kPriceNotificationsUsed[] = "price_notifications_used";
const char kDefaultBrowserPromoShown[] = "default_browser_promo_shown";
const char kDefaultBrowserPromoRemindMeLater[] =
    "default_browser_promo_remind_me_later";
const char kPasswordManagerWidgetPromoTriggered[] =
    "password_manager_widget_promo_trigger";
const char kPasswordManagerWidgetPromoUsed[] =
    "password_manager_widget_promo_used";
const char kPasswordManagerWidgetPromoClosed[] =
    "password_manager_widget_promo_closed";

// Default browser blue dot promo.
const char kBlueDotPromoOverflowMenuShown[] =
    "blue_dot_promo_overflow_menu_shown";
const char kBlueDotPromoSettingsShown[] = "blue_dot_promo_settings_shown";
const char kBlueDotPromoOverflowMenuOpened[] =
    "blue_dot_promo_overflow_menu_opened";
const char kBlueDotPromoSettingsDismissed[] =
    "blue_dot_promo_settings_dismissed";
const char kBlueDotOverflowMenuCustomized[] =
    "blue_dot_overflow_menu_customized";
const char kCredentialProviderExtensionPromoSnoozed[] =
    "credential_provider_extension_promo_snoozed";
const char kDockingPromoRemindMeLater[] = "docking_promo_remind_me_later";
const char kOpenUrlFromOmnibox[] = "open_url_from_omnibox";
const char kNewTabToolbarItemUsed[] = "new_tab_toolbar_item_used";
const char kTabGridToolbarItemUsed[] = "tab_grid_toolbar_item_used";
const char kHistoryOnOverflowMenuUsed[] = "history_on_overflow_menu_used";
const char kShareToolbarItemUsed[] = "share_toolbar_item_used";
const char kLensButtonKeyboardUsed[] = "lens_keyboard_used";
const char kParcelTrackingTriggered[] = "parcel_tracking_triggered";
const char kParcelTracked[] = "parcel_tracked";
const char kIOSMultiGestureRefreshUsed[] = "multi_gesture_refresh_used";
const char kIOSPullToRefreshUsed[] = "pull_to_refresh_feature_used";
const char kIOSPullToRefreshIPHDismissButtonTapped[] =
    "pull_to_refresh_feature_iph_dismiss_button_tapped";
const char kIOSIncognitoPageControlTapped[] = "incognito_page_control_tapped";
const char kIOSSwipeRightForIncognitoUsed[] = "swipe_right_for_incognito_used";
const char kIOSSwipeRightForIncognitoIPHDismissButtonTapped[] =
    "swipe_right_for_incognito_iph_dismiss_button_tapped";
const char kIOSBackForwardButtonTapped[] = "back_forward_button_tapped";
const char kIOSSwipeBackForwardUsed[] = "swiped_back_forward_used";
const char kIOSSwipeBackForwardIPHDismissButtonTapped[] =
    "swipe_back_forward_iph_dismiss_button_tapped";
const char kIOSTabGridAdjacentTabTapped[] = "tab_grid_adjacent_tab_tapped";
const char kIOSSwipeToolbarToChangeTabUsed[] =
    "swipe_toolbar_to_change_tab_used";
const char kIOSSwipeToolbarToChangeTabIPHDismissButtonTapped[] =
    "swipe_toolbar_to_change_tab_iph_dismiss_button_tapped";
const char kIOSOverflowMenuCustomizationUsed[] =
    "overflow_menu_customization_used";
const char kIOSOverflowMenuOffscreenItemUsed[] =
    "overflow_menu_offscreen_item_used";
const char kIOSDefaultBrowserFREShown[] = "default_browser_fre_shown";
const char kGenericDefaultBrowserPromoConditionsMet[] =
    "generic_default_browser_promo_conditions_met";
const char kAllTabsPromoConditionsMet[] = "all_tabs_promo_conditions_met";
const char kMadeForIOSPromoConditionsMet[] =
    "made_for_ios_promo_conditions_met";
const char kStaySafePromoConditionsMet[] = "stay_safe_promo_conditions_met";
const char kEnhancedSafeBrowsingPromoCriterionMet[] =
    "enhanced_safe_browsing_promo_criterion_met";
const char kInlineEnhancedSafeBrowsingPromoClosed[] =
    "inline_enhanced_safe_browsing_promo_closed";
const char kGenericDefaultBrowserPromoTrigger[] =
    "generic_default_browser_promo_trigger";
const char kAllTabsPromoTrigger[] = "all_tabs_promo_trigger";
const char kMadeForIOSPromoTrigger[] = "made_for_ios_promo_trigger";
const char kStaySafePromoTrigger[] = "stay_safe_promo_trigger";
const char kTailoredDefaultBrowserPromosGroupTrigger[] =
    "tailored_default_browser_promos_group_trigger";
const char kDefaultBrowserPromoTriggerCriteriaConditionsMet[] =
    "default_browser_promo_trigger_criteria_conditions_met";
const char kIOSContextualPanelSampleModelEntrypointUsed[] =
    "ios_contextual_panel_sample_model_entrypoint_used";
const char kIOSContextualPanelPriceInsightsEntrypointUsed[] =
    "ios_contextual_panel_price_insights_entrypoint_used";
const char kIOSContextualPanelPriceInsightsEntrypointExplicitlyDismissed[] =
    "ios_contextual_panel_price_insights_entrypoint_explicitly_dismissed";
const char kHomeCustomizationMenuUsed[] = "home_customization_menu_used";
#endif  // BUILDFLAG(IS_IOS)

#if BUILDFLAG(IS_ANDROID)
const char kPwaInstallMenuSelected[] = "pwa_install_menu_clicked";
#endif  // BUILDFLAG(IS_ANDROID)

}  // namespace events

}  // namespace feature_engagement