James Cook | af9cfe9 | 2023-06-23 17:05:48 | [diff] [blame] | 1 | // Copyright 2023 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef ASH_ASH_ELEMENT_IDENTIFIERS_H_ |
| 6 | #define ASH_ASH_ELEMENT_IDENTIFIERS_H_ |
| 7 | |
| 8 | #include "ash/ash_export.h" |
| 9 | #include "ui/base/interaction/element_identifier.h" |
| 10 | |
| 11 | namespace ash { |
| 12 | |
James Cook | ecac6ac | 2023-07-13 22:19:07 | [diff] [blame] | 13 | // Element IDs ----------------------------------------------------------------- |
James Cook | af9cfe9 | 2023-06-23 17:05:48 | [diff] [blame] | 14 | // Please keep this list alphabetized. |
James Cook | ecac6ac | 2023-07-13 22:19:07 | [diff] [blame] | 15 | |
| 16 | // Uniquely identifies the app list bubble view (the clamshell mode launcher). |
James Cook | af9cfe9 | 2023-06-23 17:05:48 | [diff] [blame] | 17 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
| 18 | kAppListBubbleViewElementId); |
James Cook | ecac6ac | 2023-07-13 22:19:07 | [diff] [blame] | 19 | |
James Cook | 7d8edb0 | 2023-07-17 22:03:10 | [diff] [blame] | 20 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
James Cook | d76f0666 | 2024-01-31 23:42:43 | [diff] [blame] | 21 | kAssistantDialogPlateElementId); |
| 22 | |
| 23 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
James Cook | 7d8edb0 | 2023-07-17 22:03:10 | [diff] [blame] | 24 | kBluetoothFeatureTileToggleElementId); |
| 25 | |
Michael Checo | 88b78376 | 2023-11-02 19:12:26 | [diff] [blame] | 26 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kCalendarViewElementId); |
| 27 | |
James Cook | 9b61e15 | 2023-08-08 15:46:05 | [diff] [blame] | 28 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kEnterpriseManagedView); |
| 29 | |
James Cook | ecac6ac | 2023-07-13 22:19:07 | [diff] [blame] | 30 | // Uniquely identifies an element corresponding to the Explore app. Note that |
| 31 | // this may be used in multiple contexts (e.g. app window, launcher, shelf, |
| 32 | // etc.), so care must be taken to use the desired context when looking up the |
| 33 | // associated element. |
| 34 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kExploreAppElementId); |
| 35 | |
| 36 | // Uniquely identifies the `HoldingSpaceTray`. |
| 37 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
| 38 | kHoldingSpaceTrayElementId); |
| 39 | |
| 40 | // Uniquely identifies the home (launcher) button. |
James Cook | af9cfe9 | 2023-06-23 17:05:48 | [diff] [blame] | 41 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kHomeButtonElementId); |
| 42 | |
andrewxu | af126b7 | 2023-07-27 02:50:12 | [diff] [blame] | 43 | // Uniquely identifies the `LoginUserView`. |
| 44 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kLoginUserViewElementId); |
| 45 | |
Daniel Andersson | 0a487c89 | 2023-12-15 02:16:34 | [diff] [blame] | 46 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
| 47 | kOverviewDeskBarElementId); |
| 48 | |
| 49 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE( |
| 50 | ASH_EXPORT, |
| 51 | kOverviewDeskBarNewDeskButtonElementId); |
| 52 | |
Darren Shen | 3b55afb | 2024-02-14 21:53:13 | [diff] [blame] | 53 | // Identifies the overall Picker window UI. |
| 54 | // See go/palette-next for more information about Picker. |
| 55 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kPickerElementId); |
| 56 | |
| 57 | // Identifies the textfield that implements the Picker search field. |
| 58 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
| 59 | kPickerSearchFieldTextfieldElementId); |
| 60 | |
| 61 | // Identifies the search results page of Picker. |
| 62 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
| 63 | kPickerSearchResultsPageElementId); |
| 64 | |
| 65 | // Identifies an emoji result in the search results page of Picker. |
| 66 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE( |
| 67 | ASH_EXPORT, |
| 68 | kPickerSearchResultsEmojiItemElementId); |
| 69 | |
James Cook | 525ece4 | 2023-07-19 22:38:29 | [diff] [blame] | 70 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE( |
| 71 | ASH_EXPORT, |
wenyu zhang | 77ade226 | 2024-01-31 13:55:01 | [diff] [blame] | 72 | kQuickSettingsAudioDetailedViewAudioSettingsButtonElementId); |
| 73 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE( |
| 74 | ASH_EXPORT, |
| 75 | kQuickSettingsAudioDetailedViewButtonElementId); |
| 76 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE( |
| 77 | ASH_EXPORT, |
James Cook | 525ece4 | 2023-07-19 22:38:29 | [diff] [blame] | 78 | kQuickSettingsSettingsButtonElementId); |
James Cook | 7d8edb0 | 2023-07-17 22:03:10 | [diff] [blame] | 79 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
| 80 | kQuickSettingsViewElementId); |
| 81 | |
James Cook | ecac6ac | 2023-07-13 22:19:07 | [diff] [blame] | 82 | // Uniquely identifies the `SearchBoxView`. |
| 83 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kSearchBoxViewElementId); |
| 84 | |
| 85 | // Uniquely identifies an element corresponding to the Settings app. Note that |
| 86 | // this may be used in multiple contexts (e.g. app window, launcher, shelf, |
| 87 | // etc.), so care must be taken to use the desired context when looking up the |
| 88 | // associated element. |
| 89 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kSettingsAppElementId); |
| 90 | |
| 91 | // Uniquely identifies the `ShelfView`. |
| 92 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kShelfViewElementId); |
| 93 | |
| 94 | // Uniquely identifies the `UnifiedSystemTray`. |
| 95 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
| 96 | kUnifiedSystemTrayElementId); |
| 97 | |
David Black | 9b9fef4 | 2023-07-14 21:03:14 | [diff] [blame] | 98 | // Uniquely identifies the `WelcomeTourDialog` for user education. |
| 99 | DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, |
| 100 | kWelcomeTourDialogElementId); |
| 101 | |
James Cook | ecac6ac | 2023-07-13 22:19:07 | [diff] [blame] | 102 | // Element Names --------------------------------------------------------------- |
David Black | 9b9fef4 | 2023-07-14 21:03:14 | [diff] [blame] | 103 | // Please keep this list alphabetized. |
James Cook | ecac6ac | 2023-07-13 22:19:07 | [diff] [blame] | 104 | |
| 105 | // Name which may be set for the `HomeButton` during an interaction sequence to |
| 106 | // uniquely identify a particular instance. |
| 107 | inline constexpr char kHomeButtonElementName[] = "kHomeButtonElementName"; |
| 108 | |
| 109 | // Name which may be set for the `UnifiedSystemTray` during an interaction |
| 110 | // sequence to uniquely identify a particular instance. |
| 111 | inline constexpr char kUnifiedSystemTrayElementName[] = |
| 112 | "kUnifiedSystemTrayElementName"; |
| 113 | |
James Cook | af9cfe9 | 2023-06-23 17:05:48 | [diff] [blame] | 114 | } // namespace ash |
| 115 | |
| 116 | #endif // ASH_ASH_ELEMENT_IDENTIFIERS_H_ |