| 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 | |
| 87 // The color of the line separating the bottom of the toolbar from the | 85 // The color of the line separating the bottom of the toolbar from the |
| 88 // contents. | 86 // contents. |
| 89 COLOR_TOOLBAR_BOTTOM_SEPARATOR, | 87 COLOR_TOOLBAR_BOTTOM_SEPARATOR = 1000, |
| 90 | 88 |
| 91 // The color of a normal toolbar button's icon. | 89 // The color of a normal toolbar button's icon. |
| 92 COLOR_TOOLBAR_BUTTON_ICON, | 90 COLOR_TOOLBAR_BUTTON_ICON, |
| 93 // The color of a disabled toolbar button's icon. | 91 // The color of a disabled toolbar button's icon. |
| 94 COLOR_TOOLBAR_BUTTON_ICON_INACTIVE, | 92 COLOR_TOOLBAR_BUTTON_ICON_INACTIVE, |
| 95 | 93 |
| 96 // The color of the line separating the top of the toolbar from the region | 94 // The color of the line separating the top of the toolbar from the region |
| 97 // above. For a tabbed browser window, this is the line along the bottom | 95 // above. For a tabbed browser window, this is the line along the bottom |
| 98 // edge of the tabstrip, the stroke around the tabs, and the new tab button | 96 // edge of the tabstrip, the stroke around the tabs, and the new tab button |
| 99 // stroke/shadow color. | 97 // stroke/shadow color. |
| 100 COLOR_TOOLBAR_TOP_SEPARATOR, | 98 COLOR_TOOLBAR_TOP_SEPARATOR, |
| 101 COLOR_TOOLBAR_TOP_SEPARATOR_INACTIVE, | 99 COLOR_TOOLBAR_TOP_SEPARATOR_INACTIVE, |
| 102 | 100 |
| 103 // Colors of vertical separators, such as on the bookmark bar or on the DL | 101 // Colors of vertical separators, such as on the bookmark bar or on the DL |
| 104 // shelf. | 102 // shelf. |
| 105 COLOR_TOOLBAR_VERTICAL_SEPARATOR, | 103 COLOR_TOOLBAR_VERTICAL_SEPARATOR, |
| 106 | 104 |
| 107 // The color of a background tab, as well as the new tab button. | 105 // The color of a background tab, as well as the new tab button. |
| 108 COLOR_BACKGROUND_TAB, | 106 COLOR_BACKGROUND_TAB, |
| 109 | 107 |
| 110 // The color of the "instructions text" in an empty bookmarks bar. | 108 // The color of the "instructions text" in an empty bookmarks bar. |
| 111 COLOR_BOOKMARK_BAR_INSTRUCTIONS_TEXT, | 109 COLOR_BOOKMARK_BAR_INSTRUCTIONS_TEXT, |
| 112 | 110 |
| 113 // Colors used for the detached (NTP) bookmark bar. | 111 // Colors used for the detached (NTP) bookmark bar. |
| 114 COLOR_DETACHED_BOOKMARK_BAR_BACKGROUND, | |
| 115 COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR, | 112 COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR, |
| 116 | 113 |
| 117 // The throbber colors for tabs or anything on a toolbar (currently, only | 114 // The throbber colors for tabs or anything on a toolbar (currently, only |
| 118 // the download shelf). If you're adding a throbber elsewhere, such as in | 115 // the download shelf). If you're adding a throbber elsewhere, such as in |
| 119 // a dialog or bubble, you likely want | 116 // a dialog or bubble, you likely want |
| 120 // NativeTheme::kColorId_ThrobberSpinningColor. | 117 // NativeTheme::kColorId_ThrobberSpinningColor. |
| 121 COLOR_TAB_THROBBER_SPINNING, | 118 COLOR_TAB_THROBBER_SPINNING, |
| 122 COLOR_TAB_THROBBER_WAITING, | 119 COLOR_TAB_THROBBER_WAITING, |
| 123 | 120 |
| 124 // These colors don't have constant default values. They are derived from | 121 // 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... |
| 183 | 180 |
| 184 // Returns the default color for the given color |id| COLOR_* enum value. | 181 // Returns the default color for the given color |id| COLOR_* enum value. |
| 185 // Returns gfx::kPlaceholderColor if |id| is invalid. | 182 // Returns gfx::kPlaceholderColor if |id| is invalid. |
| 186 static SkColor GetDefaultColor(int id, bool otr); | 183 static SkColor GetDefaultColor(int id, bool otr); |
| 187 | 184 |
| 188 private: | 185 private: |
| 189 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); | 186 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); |
| 190 }; | 187 }; |
| 191 | 188 |
| 192 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ | 189 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ |
| OLD | NEW |