OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 5 #ifndef CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
6 #define CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 6 #define CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 REPEAT_Y = 2, | 75 REPEAT_Y = 2, |
76 REPEAT = 3 | 76 REPEAT = 3 |
77 }; | 77 }; |
78 | 78 |
79 // -------------------------------------------------------------------------- | 79 // -------------------------------------------------------------------------- |
80 // The int value of the properties in NotOverwritableByUserThemeProperties | 80 // The int value of the properties in NotOverwritableByUserThemeProperties |
81 // has no special meaning. Modify the enum to your heart's content. | 81 // has no special meaning. Modify the enum to your heart's content. |
82 // The enum takes on values >= 1000 as not to overlap with | 82 // The enum takes on values >= 1000 as not to overlap with |
83 // OverwritableByUserThemeProperties. | 83 // OverwritableByUserThemeProperties. |
84 enum NotOverwritableByUserThemeProperty { | 84 enum NotOverwritableByUserThemeProperty { |
| 85 COLOR_CONTROL_BACKGROUND = 1000, |
| 86 |
85 // The color of the line separating the bottom of the toolbar from the | 87 // The color of the line separating the bottom of the toolbar from the |
86 // contents. | 88 // contents. |
87 COLOR_TOOLBAR_BOTTOM_SEPARATOR = 1000, | 89 COLOR_TOOLBAR_BOTTOM_SEPARATOR, |
88 | 90 |
89 // The color of a normal toolbar button's icon. | 91 // The color of a normal toolbar button's icon. |
90 COLOR_TOOLBAR_BUTTON_ICON, | 92 COLOR_TOOLBAR_BUTTON_ICON, |
91 // The color of a disabled toolbar button's icon. | 93 // The color of a disabled toolbar button's icon. |
92 COLOR_TOOLBAR_BUTTON_ICON_INACTIVE, | 94 COLOR_TOOLBAR_BUTTON_ICON_INACTIVE, |
93 | 95 |
94 // The color of the line separating the top of the toolbar from the region | 96 // The color of the line separating the top of the toolbar from the region |
95 // above. For a tabbed browser window, this is the line along the bottom | 97 // above. For a tabbed browser window, this is the line along the bottom |
96 // edge of the tabstrip, the stroke around the tabs, and the new tab button | 98 // edge of the tabstrip, the stroke around the tabs, and the new tab button |
97 // stroke/shadow color. | 99 // stroke/shadow color. |
98 COLOR_TOOLBAR_TOP_SEPARATOR, | 100 COLOR_TOOLBAR_TOP_SEPARATOR, |
99 COLOR_TOOLBAR_TOP_SEPARATOR_INACTIVE, | 101 COLOR_TOOLBAR_TOP_SEPARATOR_INACTIVE, |
100 | 102 |
101 // Colors of vertical separators, such as on the bookmark bar or on the DL | 103 // Colors of vertical separators, such as on the bookmark bar or on the DL |
102 // shelf. | 104 // shelf. |
103 COLOR_TOOLBAR_VERTICAL_SEPARATOR, | 105 COLOR_TOOLBAR_VERTICAL_SEPARATOR, |
104 | 106 |
105 // The color of a background tab, as well as the new tab button. | 107 // The color of a background tab, as well as the new tab button. |
106 COLOR_BACKGROUND_TAB, | 108 COLOR_BACKGROUND_TAB, |
107 | 109 |
108 // The color of the "instructions text" in an empty bookmarks bar. | 110 // The color of the "instructions text" in an empty bookmarks bar. |
109 COLOR_BOOKMARK_BAR_INSTRUCTIONS_TEXT, | 111 COLOR_BOOKMARK_BAR_INSTRUCTIONS_TEXT, |
110 | 112 |
111 // Colors used for the detached (NTP) bookmark bar. | 113 // Colors used for the detached (NTP) bookmark bar. |
| 114 COLOR_DETACHED_BOOKMARK_BAR_BACKGROUND, |
112 COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR, | 115 COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR, |
113 | 116 |
114 // The throbber colors for tabs or anything on a toolbar (currently, only | 117 // The throbber colors for tabs or anything on a toolbar (currently, only |
115 // the download shelf). If you're adding a throbber elsewhere, such as in | 118 // the download shelf). If you're adding a throbber elsewhere, such as in |
116 // a dialog or bubble, you likely want | 119 // a dialog or bubble, you likely want |
117 // NativeTheme::kColorId_ThrobberSpinningColor. | 120 // NativeTheme::kColorId_ThrobberSpinningColor. |
118 COLOR_TAB_THROBBER_SPINNING, | 121 COLOR_TAB_THROBBER_SPINNING, |
119 COLOR_TAB_THROBBER_WAITING, | 122 COLOR_TAB_THROBBER_WAITING, |
120 | 123 |
121 // These colors don't have constant default values. They are derived from | 124 // These colors don't have constant default values. They are derived from |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 183 |
181 // Returns the default color for the given color |id| COLOR_* enum value. | 184 // Returns the default color for the given color |id| COLOR_* enum value. |
182 // Returns gfx::kPlaceholderColor if |id| is invalid. | 185 // Returns gfx::kPlaceholderColor if |id| is invalid. |
183 static SkColor GetDefaultColor(int id, bool otr); | 186 static SkColor GetDefaultColor(int id, bool otr); |
184 | 187 |
185 private: | 188 private: |
186 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); | 189 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); |
187 }; | 190 }; |
188 | 191 |
189 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 192 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
OLD | NEW |