| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_THEME_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_THEMES_BROWSER_THEME_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_THEMES_BROWSER_THEME_PROVIDER_H_ | 6 #define CHROME_BROWSER_THEMES_BROWSER_THEME_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
| 15 #include "ui/base/theme_provider.h" | 15 #include "ui/base/theme_provider.h" |
| 16 | 16 |
| 17 namespace color_utils { | |
| 18 struct HSL; | |
| 19 } | |
| 20 | |
| 21 class BrowserThemePack; | 17 class BrowserThemePack; |
| 22 class BrowserThemeProviderTest; | 18 class BrowserThemeProviderTest; |
| 23 class Extension; | 19 class Extension; |
| 24 class FilePath; | 20 class FilePath; |
| 25 class Profile; | 21 class Profile; |
| 22 |
| 23 namespace color_utils { |
| 24 struct HSL; |
| 25 } |
| 26 |
| 27 namespace ui { |
| 26 class ResourceBundle; | 28 class ResourceBundle; |
| 29 } |
| 30 using ui::ResourceBundle; |
| 27 | 31 |
| 28 #ifdef __OBJC__ | 32 #ifdef __OBJC__ |
| 29 @class NSString; | 33 @class NSString; |
| 30 // Sent whenever the browser theme changes. Object => NSValue wrapping the | 34 // Sent whenever the browser theme changes. Object => NSValue wrapping the |
| 31 // BrowserThemeProvider that changed. | 35 // BrowserThemeProvider that changed. |
| 32 extern "C" NSString* const kBrowserThemeDidChangeNotification; | 36 extern "C" NSString* const kBrowserThemeDidChangeNotification; |
| 33 #endif // __OBJC__ | 37 #endif // __OBJC__ |
| 34 | 38 |
| 35 class BrowserThemeProvider : public base::NonThreadSafe, | 39 class BrowserThemeProvider : public base::NonThreadSafe, |
| 36 public ui::ThemeProvider { | 40 public ui::ThemeProvider { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 279 |
| 276 scoped_refptr<BrowserThemePack> theme_pack_; | 280 scoped_refptr<BrowserThemePack> theme_pack_; |
| 277 | 281 |
| 278 // The number of infobars currently displayed. | 282 // The number of infobars currently displayed. |
| 279 int number_of_infobars_; | 283 int number_of_infobars_; |
| 280 | 284 |
| 281 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); | 285 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); |
| 282 }; | 286 }; |
| 283 | 287 |
| 284 #endif // CHROME_BROWSER_THEMES_BROWSER_THEME_PROVIDER_H_ | 288 #endif // CHROME_BROWSER_THEMES_BROWSER_THEME_PROVIDER_H_ |
| OLD | NEW |