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 11 enum ViewID { 12 VIEW_ID_NONE = 0, 13 14 // BROWSER WINDOW VIEWS 15 // ------------------------------------------------------ 16 17 // Views which make up the skyline. These are used only 18 // on views. 19 VIEW_ID_MINIMIZE_BUTTON, 20 VIEW_ID_MAXIMIZE_BUTTON, 21 VIEW_ID_RESTORE_BUTTON, 22 VIEW_ID_CLOSE_BUTTON, 23 VIEW_ID_WINDOW_ICON, 24 VIEW_ID_WINDOW_TITLE, 25 VIEW_ID_AVATAR_LABEL, 26 VIEW_ID_AVATAR_BUTTON, 27 VIEW_ID_NEW_AVATAR_BUTTON, 28 29 // Tabs within a window/tab strip, counting from the left. 30 VIEW_ID_TAB_0, 31 VIEW_ID_TAB_1, 32 VIEW_ID_TAB_2, 33 VIEW_ID_TAB_3, 34 VIEW_ID_TAB_4, 35 VIEW_ID_TAB_5, 36 VIEW_ID_TAB_6, 37 VIEW_ID_TAB_7, 38 VIEW_ID_TAB_8, 39 VIEW_ID_TAB_9, 40 VIEW_ID_TAB_LAST, 41 42 // ID for any tab. Currently only used on views. 43 VIEW_ID_TAB, 44 45 VIEW_ID_TAB_STRIP, 46 47 // Toolbar & toolbar elements. 48 VIEW_ID_TOOLBAR = 1000, 49 VIEW_ID_BACK_BUTTON, 50 VIEW_ID_FORWARD_BUTTON, 51 VIEW_ID_RELOAD_BUTTON, 52 VIEW_ID_HOME_BUTTON, 53 VIEW_ID_STAR_BUTTON, 54 VIEW_ID_APP_MENU, 55 VIEW_ID_BROWSER_ACTION_TOOLBAR, 56 VIEW_ID_BROWSER_ACTION, 57 VIEW_ID_FEEDBACK_BUTTON, 58 VIEW_ID_OMNIBOX, 59 VIEW_ID_SCRIPT_BUBBLE, 60 VIEW_ID_TRANSLATE_BUTTON, 61 62 // The Bookmark Bar. 63 VIEW_ID_BOOKMARK_BAR, 64 VIEW_ID_OTHER_BOOKMARKS, 65 VIEW_ID_MANAGED_BOOKMARKS, 66 // Used for bookmarks/folders on the bookmark bar. 67 VIEW_ID_BOOKMARK_BAR_ELEMENT, 68 69 // Find in page. 70 VIEW_ID_FIND_IN_PAGE_TEXT_FIELD, 71 72 // Tab Container window. 73 VIEW_ID_TAB_CONTAINER, 74 75 // Docked dev tools. 76 VIEW_ID_DEV_TOOLS_DOCKED, 77 78 // The contents split. 79 VIEW_ID_CONTENTS_SPLIT, 80 81 // The Infobar container. 82 VIEW_ID_INFO_BAR_CONTAINER, 83 84 // The Download shelf. 85 VIEW_ID_DOWNLOAD_SHELF, 86 87 // TODO(dbeam): change the zoom decoration to an NSImageView on Mac so IDs work. 88 #if !defined(OS_MACOSX) 89 // Zoom button in location bar. 90 VIEW_ID_ZOOM_BUTTON, 91 #endif 92 93 // TODO(npentrel): change the passwords decoration to an NSImageView. 94 #if !defined(OS_MACOSX) 95 // The manage passwords icon in the location bar. 96 VIEW_ID_MANAGE_PASSWORDS_ICON_BUTTON, 97 #endif 98 99 // The omnibox icon to do voice-based search. 100 VIEW_ID_MIC_SEARCH_BUTTON, 101 102 // Used in chrome/browser/ui/gtk/view_id_util_browsertest.cc 103 // If you add new ids, make sure the above test passes. 104 VIEW_ID_PREDEFINED_COUNT, 105 106 // Plus button on location bar. 107 VIEW_ID_ACTION_BOX_BUTTON, 108 }; 109 110 #endif // CHROME_BROWSER_UI_VIEW_IDS_H_ 111