[go: nahoru, domu]

blob: 4dc29a624b48ac10ff61a3697022591b604a42db [file] [log] [blame]
James Cookaf9cfe92023-06-23 17:05:481// 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
11namespace ash {
12
James Cookecac6ac2023-07-13 22:19:0713// Element IDs -----------------------------------------------------------------
James Cookaf9cfe92023-06-23 17:05:4814// Please keep this list alphabetized.
James Cookecac6ac2023-07-13 22:19:0715
16// Uniquely identifies the app list bubble view (the clamshell mode launcher).
James Cookaf9cfe92023-06-23 17:05:4817DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
18 kAppListBubbleViewElementId);
James Cookecac6ac2023-07-13 22:19:0719
James Cook7d8edb02023-07-17 22:03:1020DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
James Cookd76f06662024-01-31 23:42:4321 kAssistantDialogPlateElementId);
22
23DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
James Cook7d8edb02023-07-17 22:03:1024 kBluetoothFeatureTileToggleElementId);
25
Michael Checo88b783762023-11-02 19:12:2626DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kCalendarViewElementId);
27
James Cook9b61e152023-08-08 15:46:0528DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kEnterpriseManagedView);
29
James Cookecac6ac2023-07-13 22:19:0730// 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.
34DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kExploreAppElementId);
35
36// Uniquely identifies the `HoldingSpaceTray`.
37DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
38 kHoldingSpaceTrayElementId);
39
40// Uniquely identifies the home (launcher) button.
James Cookaf9cfe92023-06-23 17:05:4841DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kHomeButtonElementId);
42
andrewxuaf126b72023-07-27 02:50:1243// Uniquely identifies the `LoginUserView`.
44DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kLoginUserViewElementId);
45
Daniel Andersson0a487c892023-12-15 02:16:3446DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
47 kOverviewDeskBarElementId);
48
49DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(
50 ASH_EXPORT,
51 kOverviewDeskBarNewDeskButtonElementId);
52
Darren Shen3b55afb2024-02-14 21:53:1353// Identifies the overall Picker window UI.
54// See go/palette-next for more information about Picker.
55DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kPickerElementId);
56
57// Identifies the textfield that implements the Picker search field.
58DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
59 kPickerSearchFieldTextfieldElementId);
60
61// Identifies the search results page of Picker.
62DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
63 kPickerSearchResultsPageElementId);
64
65// Identifies an emoji result in the search results page of Picker.
66DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(
67 ASH_EXPORT,
68 kPickerSearchResultsEmojiItemElementId);
69
James Cook525ece42023-07-19 22:38:2970DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(
71 ASH_EXPORT,
wenyu zhang77ade2262024-01-31 13:55:0172 kQuickSettingsAudioDetailedViewAudioSettingsButtonElementId);
73DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(
74 ASH_EXPORT,
75 kQuickSettingsAudioDetailedViewButtonElementId);
76DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(
77 ASH_EXPORT,
James Cook525ece42023-07-19 22:38:2978 kQuickSettingsSettingsButtonElementId);
James Cook7d8edb02023-07-17 22:03:1079DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
80 kQuickSettingsViewElementId);
81
James Cookecac6ac2023-07-13 22:19:0782// Uniquely identifies the `SearchBoxView`.
83DECLARE_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.
89DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kSettingsAppElementId);
90
91// Uniquely identifies the `ShelfView`.
92DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT, kShelfViewElementId);
93
94// Uniquely identifies the `UnifiedSystemTray`.
95DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
96 kUnifiedSystemTrayElementId);
97
David Black9b9fef42023-07-14 21:03:1498// Uniquely identifies the `WelcomeTourDialog` for user education.
99DECLARE_EXPORTED_ELEMENT_IDENTIFIER_VALUE(ASH_EXPORT,
100 kWelcomeTourDialogElementId);
101
James Cookecac6ac2023-07-13 22:19:07102// Element Names ---------------------------------------------------------------
David Black9b9fef42023-07-14 21:03:14103// Please keep this list alphabetized.
James Cookecac6ac2023-07-13 22:19:07104
105// Name which may be set for the `HomeButton` during an interaction sequence to
106// uniquely identify a particular instance.
107inline 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.
111inline constexpr char kUnifiedSystemTrayElementName[] =
112 "kUnifiedSystemTrayElementName";
113
James Cookaf9cfe92023-06-23 17:05:48114} // namespace ash
115
116#endif // ASH_ASH_ELEMENT_IDENTIFIERS_H_