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.
4
5// This defines an enumeration of IDs that can uniquely identify a view within
6// the scope of a container view.
7
8#ifndef CHROME_BROWSER_UI_VIEW_IDS_H_
9#define CHROME_BROWSER_UI_VIEW_IDS_H_
10
11enum ViewID {
12  VIEW_ID_NONE = 0,
13
14  // BROWSER WINDOW VIEWS
15  // ------------------------------------------------------
16
17  // Tabs within a window/tab strip, counting from the left.
18  VIEW_ID_TAB_0,
19  VIEW_ID_TAB_1,
20  VIEW_ID_TAB_2,
21  VIEW_ID_TAB_3,
22  VIEW_ID_TAB_4,
23  VIEW_ID_TAB_5,
24  VIEW_ID_TAB_6,
25  VIEW_ID_TAB_7,
26  VIEW_ID_TAB_8,
27  VIEW_ID_TAB_9,
28  VIEW_ID_TAB_LAST,
29
30  // ID for any tab. Currently only used on views.
31  VIEW_ID_TAB,
32
33  VIEW_ID_TAB_STRIP,
34
35  // Toolbar & toolbar elements.
36  VIEW_ID_TOOLBAR = 1000,
37  VIEW_ID_BACK_BUTTON,
38  VIEW_ID_FORWARD_BUTTON,
39  VIEW_ID_RELOAD_BUTTON,
40  VIEW_ID_HOME_BUTTON,
41  VIEW_ID_STAR_BUTTON,
42  VIEW_ID_APP_MENU,
43  VIEW_ID_BROWSER_ACTION_TOOLBAR,
44  VIEW_ID_FEEDBACK_BUTTON,
45  VIEW_ID_OMNIBOX,
46  VIEW_ID_SCRIPT_BUBBLE,
47
48  // The Bookmark Bar.
49  VIEW_ID_BOOKMARK_BAR,
50  VIEW_ID_OTHER_BOOKMARKS,
51  // Used for bookmarks/folders on the bookmark bar.
52  VIEW_ID_BOOKMARK_BAR_ELEMENT,
53
54  // Find in page.
55  VIEW_ID_FIND_IN_PAGE_TEXT_FIELD,
56  VIEW_ID_FIND_IN_PAGE,
57
58  // Tab Container window.
59  VIEW_ID_TAB_CONTAINER,
60
61  // Docked dev tools.
62  VIEW_ID_DEV_TOOLS_DOCKED,
63
64  // The contents split.
65  VIEW_ID_CONTENTS_SPLIT,
66
67  // The Infobar container.
68  VIEW_ID_INFO_BAR_CONTAINER,
69
70  // The Download shelf.
71  VIEW_ID_DOWNLOAD_SHELF,
72
73// TODO(dbeam): change the zoom decoration to an NSImageView on Mac so IDs work.
74#if !defined(OS_MACOSX)
75  // Zoom button in location bar.
76  VIEW_ID_ZOOM_BUTTON,
77#endif
78
79  // The omnibox icon to do voice-based search.
80  VIEW_ID_MIC_SEARCH_BUTTON,
81
82  // Used in chrome/browser/ui/gtk/view_id_util_browsertest.cc
83  // If you add new ids, make sure the above test passes.
84  VIEW_ID_PREDEFINED_COUNT,
85
86  // Plus button on location bar.
87  VIEW_ID_ACTION_BOX_BUTTON,
88};
89
90#endif  // CHROME_BROWSER_UI_VIEW_IDS_H_
91
92