OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BROWSER_THEME_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ |
6 #define CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ | 6 #define CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "app/gfx/color_utils.h" | 12 #include "app/gfx/color_utils.h" |
13 #include "app/resource_bundle.h" | 13 #include "app/resource_bundle.h" |
14 #include "app/theme_provider.h" | 14 #include "app/theme_provider.h" |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/non_thread_safe.h" | 16 #include "base/non_thread_safe.h" |
17 #include "base/ref_counted.h" | 17 #include "base/ref_counted.h" |
18 | 18 |
19 class Extension; | 19 class Extension; |
20 class Profile; | 20 class Profile; |
21 class DictionaryValue; | 21 class DictionaryValue; |
22 | 22 |
23 class BrowserThemeProvider : public base::RefCounted<BrowserThemeProvider>, | 23 class BrowserThemeProvider : public NonThreadSafe, |
24 public NonThreadSafe, | |
25 public ThemeProvider { | 24 public ThemeProvider { |
26 public: | 25 public: |
27 // Public constants used in BrowserThemeProvider and its subclasses: | 26 // Public constants used in BrowserThemeProvider and its subclasses: |
28 | 27 |
29 // Strings used by themes to identify colors for different parts of our UI. | 28 // Strings used by themes to identify colors for different parts of our UI. |
30 static const char* kColorFrame; | 29 static const char* kColorFrame; |
31 static const char* kColorFrameInactive; | 30 static const char* kColorFrameInactive; |
32 static const char* kColorFrameIncognito; | 31 static const char* kColorFrameIncognito; |
33 static const char* kColorFrameIncognitoInactive; | 32 static const char* kColorFrameIncognitoInactive; |
34 static const char* kColorToolbar; | 33 static const char* kColorToolbar; |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 // If true, process all images; if false, just load from disk. | 360 // If true, process all images; if false, just load from disk. |
362 bool process_images_; | 361 bool process_images_; |
363 | 362 |
364 // Where we will store our generated images. | 363 // Where we will store our generated images. |
365 FilePath image_dir_; | 364 FilePath image_dir_; |
366 | 365 |
367 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); | 366 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); |
368 }; | 367 }; |
369 | 368 |
370 #endif // CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ | 369 #endif // CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ |
OLD | NEW |