123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- // Copyright 2017 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef COMPONENTS_FEATURE_ENGAGEMENT_PUBLIC_EVENT_CONSTANTS_H_
- #define COMPONENTS_FEATURE_ENGAGEMENT_PUBLIC_EVENT_CONSTANTS_H_
- #include "build/build_config.h"
- namespace feature_engagement {
- namespace events {
- // Desktop
- #if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) || \
- BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
- // The user has explicitly opened a new tab via an entry point from inside of
- // Chrome.
- extern const char kNewTabOpened[];
- // A new tab was opened when 5 (or more) tabs were already open.
- extern const char kSixthTabOpened[];
- // The user made a new tab group.
- extern const char kTabGroupCreated[];
- // A tab was closed when there are eight or more tabs in the browser.
- extern const char kClosedTabWithEightOrMore[];
- // A tab was added to reading list.
- extern const char kReadingListItemAdded[];
- // Reading list was opened.
- extern const char kReadingListMenuOpened[];
- // Bookmark star button was clicked opening the menu.
- extern const char kBookmarkStarMenuOpened[];
- // All conditions for reopen closed tab IPH were met. Since this IPH needs to
- // track user events (opening/closing tabs, focusing the omnibox, etc) on the
- // second level, it must be done manually.
- extern const char kReopenTabConditionsMet[];
- // The user reopened a previously closed tab.
- extern const char kTabReopened[];
- // A tab with playing media was sent to the background.
- extern const char kMediaBackgrounded[];
- // The user opened the Global Media Controls dialog.
- extern const char kGlobalMediaControlsOpened[];
- // All the events declared below are the string names of deferred onboarding
- // events for the Focus Mode feature.
- // The user has opened a Focus Mode window.
- extern const char kFocusModeOpened[];
- // All conditions for show Focus Mode IPH were met.
- extern const char kFocusModeConditionsMet[];
- // The side search panel was automatically triggered.
- extern const char kSideSearchAutoTriggered[];
- // The Side search panel was opened by the user.
- extern const char kSideSearchOpened[];
- // Tab Search tab strip was opened by the user.
- extern const char kTabSearchOpened[];
- // The WebUI tab strip was closed by the user.
- extern const char kWebUITabStripClosed[];
- // The WebUI tab strip was opened by the user.
- extern const char kWebUITabStripOpened[];
- // The PWA was installed by the user.
- extern const char kDesktopPwaInstalled[];
- // The user entered the special "focus help bubble" accelerator.
- extern const char kFocusHelpBubbleAcceleratorPressed[];
- // The screen reader promo for the "focus help bubble" accelerator was read to
- // the user.
- extern const char kFocusHelpBubbleAcceleratorPromoRead[];
- #endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_LINUX) ||
- // BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_FUCHSIA)
- #if BUILDFLAG(IS_IOS)
- // The user has opened Chrome (cold start or from background).
- extern const char kChromeOpened[];
- // The user has opened an incognito tab.
- extern const char kIncognitoTabOpened[];
- // The user has cleared their browsing data.
- extern const char kClearedBrowsingData[];
- // The user has viewed their reading list.
- extern const char kViewedReadingList[];
- // The user has triggered the translate infobar manually.
- extern const char kTriggeredTranslateInfobar[];
- // The user has viewed the BottomToolbar tip.
- extern const char kBottomToolbarOpened[];
- // The Discover feed has loaded content in the NTP.
- extern const char kDiscoverFeedLoaded[];
- // The user has requested the desktop version of a page.
- extern const char kDesktopVersionRequested[];
- // The default site view tip is shown.
- extern const char kDefaultSiteViewShown[];
- // Autofill displayed password suggestions.
- extern const char kPasswordSuggestionsShown[];
- // The user has selected an Autofill password suggestion.
- extern const char kPasswordSuggestionSelected[];
- // The user has exited the overflow menu without scrolling horizontally and
- // without taking an action.
- extern const char kOverflowMenuNoHorizontalScrollOrAction[];
- #endif // BUILDFLAG(IS_IOS)
- // Android.
- #if BUILDFLAG(IS_ANDROID)
- // The user has explicitly used the Install menu item under the App Menu.
- extern const char kPwaInstallMenuSelected[];
- #endif // BUILDFLAG(IS_ANDROID)
- } // namespace events
- } // namespace feature_engagement
- #endif // COMPONENTS_FEATURE_ENGAGEMENT_PUBLIC_EVENT_CONSTANTS_H_
|