OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 virtual void NotifyPlatformThemeChanged(); | 242 virtual void NotifyPlatformThemeChanged(); |
243 #endif // OS_MACOSX | 243 #endif // OS_MACOSX |
244 | 244 |
245 // Clears the platform-specific caches. Do not call directly; it's called | 245 // Clears the platform-specific caches. Do not call directly; it's called |
246 // from ClearCaches(). | 246 // from ClearCaches(). |
247 virtual void FreePlatformCaches(); | 247 virtual void FreePlatformCaches(); |
248 | 248 |
249 Profile* profile() { return profile_; } | 249 Profile* profile() { return profile_; } |
250 | 250 |
251 // NotificationObserver: | 251 // NotificationObserver: |
252 virtual void Observe(NotificationType type, | 252 virtual void Observe(int type, |
253 const NotificationSource& source, | 253 const NotificationSource& source, |
254 const NotificationDetails& details); | 254 const NotificationDetails& details); |
255 | 255 |
256 private: | 256 private: |
257 friend class ThemeServiceTest; | 257 friend class ThemeServiceTest; |
258 | 258 |
259 // Saves the filename of the cached theme pack. | 259 // Saves the filename of the cached theme pack. |
260 void SavePackName(const FilePath& pack_path); | 260 void SavePackName(const FilePath& pack_path); |
261 | 261 |
262 // Save the id of the last theme installed. | 262 // Save the id of the last theme installed. |
(...skipping 30 matching lines...) Expand all Loading... |
293 | 293 |
294 // The number of infobars currently displayed. | 294 // The number of infobars currently displayed. |
295 int number_of_infobars_; | 295 int number_of_infobars_; |
296 | 296 |
297 NotificationRegistrar registrar_; | 297 NotificationRegistrar registrar_; |
298 | 298 |
299 DISALLOW_COPY_AND_ASSIGN(ThemeService); | 299 DISALLOW_COPY_AND_ASSIGN(ThemeService); |
300 }; | 300 }; |
301 | 301 |
302 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 302 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ |
OLD | NEW |