| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
| 6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 const override; | 197 const override; |
| 198 #if defined(OS_MACOSX) | 198 #if defined(OS_MACOSX) |
| 199 bool UsingSystemTheme() const override; | 199 bool UsingSystemTheme() const override; |
| 200 bool InIncognitoMode() const override; | 200 bool InIncognitoMode() const override; |
| 201 bool HasCustomColor(int id) const override; | 201 bool HasCustomColor(int id) const override; |
| 202 NSImage* GetNSImageNamed(int id) const override; | 202 NSImage* GetNSImageNamed(int id) const override; |
| 203 NSColor* GetNSImageColorNamed(int id) const override; | 203 NSColor* GetNSImageColorNamed(int id) const override; |
| 204 NSColor* GetNSColor(int id) const override; | 204 NSColor* GetNSColor(int id) const override; |
| 205 NSColor* GetNSColorTint(int id) const override; | 205 NSColor* GetNSColorTint(int id) const override; |
| 206 NSGradient* GetNSGradient(int id) const override; | 206 NSGradient* GetNSGradient(int id) const override; |
| 207 bool ShouldIncreaseContrast() const override; |
| 207 #endif | 208 #endif |
| 208 | 209 |
| 209 private: | 210 private: |
| 210 const ThemeService& theme_service_; | 211 const ThemeService& theme_service_; |
| 211 bool incognito_; | 212 bool incognito_; |
| 212 | 213 |
| 213 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); | 214 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); |
| 214 }; | 215 }; |
| 215 friend class BrowserThemeProvider; | 216 friend class BrowserThemeProvider; |
| 216 friend class theme_service_internal::ThemeServiceTest; | 217 friend class theme_service_internal::ThemeServiceTest; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 325 |
| 325 BrowserThemeProvider original_theme_provider_; | 326 BrowserThemeProvider original_theme_provider_; |
| 326 BrowserThemeProvider incognito_theme_provider_; | 327 BrowserThemeProvider incognito_theme_provider_; |
| 327 | 328 |
| 328 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; | 329 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; |
| 329 | 330 |
| 330 DISALLOW_COPY_AND_ASSIGN(ThemeService); | 331 DISALLOW_COPY_AND_ASSIGN(ThemeService); |
| 331 }; | 332 }; |
| 332 | 333 |
| 333 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 334 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
| OLD | NEW |