1 // Copyright (c) 2011 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 #pragma once 11 12 enum ViewID { 13 VIEW_ID_NONE = 0, 14 15 // BROWSER WINDOW VIEWS 16 // ------------------------------------------------------ 17 18 // Tabs within a window/tab strip, counting from the left. 19 VIEW_ID_TAB_0, 20 VIEW_ID_TAB_1, 21 VIEW_ID_TAB_2, 22 VIEW_ID_TAB_3, 23 VIEW_ID_TAB_4, 24 VIEW_ID_TAB_5, 25 VIEW_ID_TAB_6, 26 VIEW_ID_TAB_7, 27 VIEW_ID_TAB_8, 28 VIEW_ID_TAB_9, 29 VIEW_ID_TAB_LAST, 30 31 // ID for any tab. Currently only used on views. 32 VIEW_ID_TAB, 33 34 VIEW_ID_TAB_STRIP, 35 36 // Toolbar & toolbar elements. 37 VIEW_ID_TOOLBAR = 1000, 38 VIEW_ID_BACK_BUTTON, 39 VIEW_ID_FORWARD_BUTTON, 40 VIEW_ID_RELOAD_BUTTON, 41 VIEW_ID_HOME_BUTTON, 42 VIEW_ID_STAR_BUTTON, 43 VIEW_ID_LOCATION_BAR, 44 VIEW_ID_APP_MENU, 45 VIEW_ID_AUTOCOMPLETE, 46 VIEW_ID_BROWSER_ACTION_TOOLBAR, 47 VIEW_ID_FEEDBACK_BUTTON, 48 49 // The Bookmark Bar. 50 VIEW_ID_BOOKMARK_BAR, 51 VIEW_ID_OTHER_BOOKMARKS, 52 // Used for bookmarks/folders on the bookmark bar. 53 VIEW_ID_BOOKMARK_BAR_ELEMENT, 54 55 // Find in page. 56 VIEW_ID_FIND_IN_PAGE_TEXT_FIELD, 57 VIEW_ID_FIND_IN_PAGE, 58 59 // Tab Container window. 60 VIEW_ID_TAB_CONTAINER, 61 VIEW_ID_TAB_CONTAINER_FOCUS_VIEW, 62 63 // Docked dev tools. 64 VIEW_ID_DEV_TOOLS_DOCKED, 65 66 // The contents split. 67 VIEW_ID_CONTENTS_SPLIT, 68 69 // The Infobar container. 70 VIEW_ID_INFO_BAR_CONTAINER, 71 72 // The Download shelf. 73 VIEW_ID_DOWNLOAD_SHELF, 74 75 // The Sidebar container. 76 VIEW_ID_SIDE_BAR_CONTAINER, 77 78 // The sidebar split. 79 VIEW_ID_SIDE_BAR_SPLIT, 80 81 // Used in chrome/browser/ui/gtk/view_id_util_browsertests.cc 82 // If you add new ids, make sure the above test passes. 83 VIEW_ID_PREDEFINED_COUNT 84 }; 85 86 #endif // CHROME_BROWSER_UI_VIEW_IDS_H_ 87 88