| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } Tiling; | 140 } Tiling; |
| 141 | 141 |
| 142 // ui::ThemeProvider implementation. | 142 // ui::ThemeProvider implementation. |
| 143 virtual void Init(Profile* profile); | 143 virtual void Init(Profile* profile); |
| 144 virtual SkBitmap* GetBitmapNamed(int id) const; | 144 virtual SkBitmap* GetBitmapNamed(int id) const; |
| 145 virtual SkColor GetColor(int id) const; | 145 virtual SkColor GetColor(int id) const; |
| 146 virtual bool GetDisplayProperty(int id, int* result) const; | 146 virtual bool GetDisplayProperty(int id, int* result) const; |
| 147 virtual bool ShouldUseNativeFrame() const; | 147 virtual bool ShouldUseNativeFrame() const; |
| 148 virtual bool HasCustomImage(int id) const; | 148 virtual bool HasCustomImage(int id) const; |
| 149 virtual RefCountedMemory* GetRawData(int id) const; | 149 virtual RefCountedMemory* GetRawData(int id) const; |
| 150 #if defined(TOOLKIT_USES_GTK) | 150 #if defined(TOOLKIT_USES_GTK) && !defined(USE_AURA) |
| 151 // GdkPixbufs returned by GetPixbufNamed and GetRTLEnabledPixbufNamed are | 151 // GdkPixbufs returned by GetPixbufNamed and GetRTLEnabledPixbufNamed are |
| 152 // shared instances owned by the theme provider and should not be freed. | 152 // shared instances owned by the theme provider and should not be freed. |
| 153 virtual GdkPixbuf* GetPixbufNamed(int id) const; | 153 virtual GdkPixbuf* GetPixbufNamed(int id) const; |
| 154 virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) const; | 154 virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) const; |
| 155 #elif defined(OS_MACOSX) | 155 #elif defined(OS_MACOSX) |
| 156 virtual NSImage* GetNSImageNamed(int id, bool allow_default) const; | 156 virtual NSImage* GetNSImageNamed(int id, bool allow_default) const; |
| 157 virtual NSColor* GetNSImageColorNamed(int id, bool allow_default) const; | 157 virtual NSColor* GetNSImageColorNamed(int id, bool allow_default) const; |
| 158 virtual NSColor* GetNSColor(int id, bool allow_default) const; | 158 virtual NSColor* GetNSColor(int id, bool allow_default) const; |
| 159 virtual NSColor* GetNSColorTint(int id, bool allow_default) const; | 159 virtual NSColor* GetNSColorTint(int id, bool allow_default) const; |
| 160 virtual NSGradient* GetNSGradient(int id) const; | 160 virtual NSGradient* GetNSGradient(int id) const; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |