OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This defines an enumeration of IDs that can uniquely identify a view within | 5 // This defines an enumeration of IDs that can uniquely identify a view within |
6 // the scope of a container view. | 6 // the scope of a container view. |
7 | 7 |
8 #ifndef CHROME_BROWSER_UI_VIEW_IDS_H_ | 8 #ifndef CHROME_BROWSER_UI_VIEW_IDS_H_ |
9 #define CHROME_BROWSER_UI_VIEW_IDS_H_ | 9 #define CHROME_BROWSER_UI_VIEW_IDS_H_ |
10 | 10 |
11 enum ViewID { | 11 enum ViewID { |
12 VIEW_ID_NONE = 0, | 12 VIEW_ID_NONE = 0, |
13 | 13 |
14 // BROWSER WINDOW VIEWS | 14 // BROWSER WINDOW VIEWS |
15 // ------------------------------------------------------ | 15 // ------------------------------------------------------ |
16 | 16 |
17 // Views which make up the skyline. These are used only | 17 // Views which make up the skyline. These are used only |
18 // on views. | 18 // on views. |
19 VIEW_ID_MINIMIZE_BUTTON, | 19 VIEW_ID_MINIMIZE_BUTTON, |
20 VIEW_ID_MAXIMIZE_BUTTON, | 20 VIEW_ID_MAXIMIZE_BUTTON, |
21 VIEW_ID_RESTORE_BUTTON, | 21 VIEW_ID_RESTORE_BUTTON, |
22 VIEW_ID_CLOSE_BUTTON, | 22 VIEW_ID_CLOSE_BUTTON, |
23 VIEW_ID_WINDOW_ICON, | 23 VIEW_ID_WINDOW_ICON, |
24 VIEW_ID_WINDOW_TITLE, | 24 VIEW_ID_WINDOW_TITLE, |
25 VIEW_ID_AVATAR_LABEL, | 25 #if defined(ENABLE_MANAGED_USERS) |
| 26 VIEW_ID_SUPERVISED_USER_AVATAR_LABEL, |
| 27 #endif |
26 VIEW_ID_AVATAR_BUTTON, | 28 VIEW_ID_AVATAR_BUTTON, |
27 VIEW_ID_NEW_AVATAR_BUTTON, | 29 VIEW_ID_NEW_AVATAR_BUTTON, |
28 | 30 |
29 // Tabs within a window/tab strip, counting from the left. | 31 // Tabs within a window/tab strip, counting from the left. |
30 VIEW_ID_TAB_0, | 32 VIEW_ID_TAB_0, |
31 VIEW_ID_TAB_1, | 33 VIEW_ID_TAB_1, |
32 VIEW_ID_TAB_2, | 34 VIEW_ID_TAB_2, |
33 VIEW_ID_TAB_3, | 35 VIEW_ID_TAB_3, |
34 VIEW_ID_TAB_4, | 36 VIEW_ID_TAB_4, |
35 VIEW_ID_TAB_5, | 37 VIEW_ID_TAB_5, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 103 |
102 // Used in chrome/browser/ui/gtk/view_id_util_browsertest.cc | 104 // Used in chrome/browser/ui/gtk/view_id_util_browsertest.cc |
103 // If you add new ids, make sure the above test passes. | 105 // If you add new ids, make sure the above test passes. |
104 VIEW_ID_PREDEFINED_COUNT, | 106 VIEW_ID_PREDEFINED_COUNT, |
105 | 107 |
106 // Plus button on location bar. | 108 // Plus button on location bar. |
107 VIEW_ID_ACTION_BOX_BUTTON, | 109 VIEW_ID_ACTION_BOX_BUTTON, |
108 }; | 110 }; |
109 | 111 |
110 #endif // CHROME_BROWSER_UI_VIEW_IDS_H_ | 112 #endif // CHROME_BROWSER_UI_VIEW_IDS_H_ |
OLD | NEW |