1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This defines an enumeration of IDs that can uniquely identify a view within
6 // the scope of a container view.
8 #ifndef CHROME_BROWSER_UI_VIEW_IDS_H_
9 #define CHROME_BROWSER_UI_VIEW_IDS_H_
14 // BROWSER WINDOW VIEWS
15 // ------------------------------------------------------
17 // Views which make up the skyline. These are used only
19 VIEW_ID_MINIMIZE_BUTTON
,
20 VIEW_ID_MAXIMIZE_BUTTON
,
21 VIEW_ID_RESTORE_BUTTON
,
25 #if defined(ENABLE_MANAGED_USERS)
26 VIEW_ID_SUPERVISED_USER_AVATAR_LABEL
,
28 VIEW_ID_AVATAR_BUTTON
,
29 VIEW_ID_NEW_AVATAR_BUTTON
,
31 // Tabs within a window/tab strip, counting from the left.
44 // ID for any tab. Currently only used on views.
49 // Toolbar & toolbar elements.
50 VIEW_ID_TOOLBAR
= 1000,
52 VIEW_ID_FORWARD_BUTTON
,
53 VIEW_ID_RELOAD_BUTTON
,
57 VIEW_ID_BROWSER_ACTION_TOOLBAR
,
58 VIEW_ID_BROWSER_ACTION
,
59 VIEW_ID_FEEDBACK_BUTTON
,
61 VIEW_ID_SCRIPT_BUBBLE
,
62 VIEW_ID_TRANSLATE_BUTTON
,
66 VIEW_ID_OTHER_BOOKMARKS
,
67 VIEW_ID_MANAGED_BOOKMARKS
,
68 // Used for bookmarks/folders on the bookmark bar.
69 VIEW_ID_BOOKMARK_BAR_ELEMENT
,
72 VIEW_ID_FIND_IN_PAGE_TEXT_FIELD
,
74 // Tab Container window.
75 VIEW_ID_TAB_CONTAINER
,
78 VIEW_ID_DEV_TOOLS_DOCKED
,
80 // The contents split.
81 VIEW_ID_CONTENTS_SPLIT
,
83 // The Infobar container.
84 VIEW_ID_INFO_BAR_CONTAINER
,
86 // The Download shelf.
87 VIEW_ID_DOWNLOAD_SHELF
,
89 // TODO(dbeam): change the zoom decoration to an NSImageView on Mac so IDs work.
90 #if !defined(OS_MACOSX)
91 // Zoom button in location bar.
95 // TODO(npentrel): change the passwords decoration to an NSImageView.
96 #if !defined(OS_MACOSX)
97 // The manage passwords icon in the location bar.
98 VIEW_ID_MANAGE_PASSWORDS_ICON_BUTTON
,
101 // The omnibox icon to do voice-based search.
102 VIEW_ID_MIC_SEARCH_BUTTON
,
104 // Used in chrome/browser/ui/gtk/view_id_util_browsertest.cc
105 // If you add new ids, make sure the above test passes.
106 VIEW_ID_PREDEFINED_COUNT
,
108 // Plus button on location bar.
109 VIEW_ID_ACTION_BOX_BUTTON
,
112 #endif // CHROME_BROWSER_UI_VIEW_IDS_H_