Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(751)

Side by Side Diff: chrome/browser/themes/theme_properties.h

Issue 19471005: Add custom default theme support and create a managed user default theme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't call NotifyThemeChanged if not ready. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 }; 73 };
74 74
75 // -------------------------------------------------------------------------- 75 // --------------------------------------------------------------------------
76 // The int value of the properties in NotOverwritableByUserThemeProperties 76 // The int value of the properties in NotOverwritableByUserThemeProperties
77 // has no special meaning. Modify the enum to your heart's content. 77 // has no special meaning. Modify the enum to your heart's content.
78 // The enum takes on values >= 1000 as not to overlap with 78 // The enum takes on values >= 1000 as not to overlap with
79 // OverwritableByUserThemeProperties. 79 // OverwritableByUserThemeProperties.
80 enum NotOverwritableByUserThemeProperty { 80 enum NotOverwritableByUserThemeProperty {
81 COLOR_CONTROL_BACKGROUND = 1000, 81 COLOR_CONTROL_BACKGROUND = 1000,
82 COLOR_TOOLBAR_SEPARATOR, 82 COLOR_TOOLBAR_SEPARATOR,
83 COLOR_FRAME_MANAGED_USER,
84 COLOR_FRAME_MANAGED_USER_INACTIVE,
85 83
86 // These colors don't have constant default values. They are derived from 84 // These colors don't have constant default values. They are derived from
87 // the runtime value of other colors. 85 // the runtime value of other colors.
88 COLOR_NTP_SECTION_HEADER_TEXT, 86 COLOR_NTP_SECTION_HEADER_TEXT,
89 COLOR_NTP_SECTION_HEADER_TEXT_HOVER, 87 COLOR_NTP_SECTION_HEADER_TEXT_HOVER,
90 COLOR_NTP_SECTION_HEADER_RULE, 88 COLOR_NTP_SECTION_HEADER_RULE,
91 COLOR_NTP_SECTION_HEADER_RULE_LIGHT, 89 COLOR_NTP_SECTION_HEADER_RULE_LIGHT,
92 COLOR_NTP_TEXT_LIGHT, 90 COLOR_NTP_TEXT_LIGHT,
93 COLOR_MANAGED_USER_LABEL, 91 COLOR_MANAGED_USER_LABEL,
94 COLOR_MANAGED_USER_LABEL_BACKGROUND, 92 COLOR_MANAGED_USER_LABEL_BACKGROUND,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 141
144 // Returns true and sets |result| to the requested default property, if |id| 142 // Returns true and sets |result| to the requested default property, if |id|
145 // is valid. 143 // is valid.
146 static bool GetDefaultDisplayProperty(int id, int* result); 144 static bool GetDefaultDisplayProperty(int id, int* result);
147 145
148 private: 146 private:
149 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties); 147 DISALLOW_IMPLICIT_CONSTRUCTORS(ThemeProperties);
150 }; 148 };
151 149
152 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_ 150 #endif // CHROME_BROWSER_THEMES_THEME_PROPERTIES_H_
OLDNEW
« no previous file with comments | « chrome/browser/themes/custom_theme_supplier.cc ('k') | chrome/browser/themes/theme_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698