| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 135   typedef enum { | 135   typedef enum { | 
| 136     NO_REPEAT = 0, | 136     NO_REPEAT = 0, | 
| 137     REPEAT_X = 1, | 137     REPEAT_X = 1, | 
| 138     REPEAT_Y = 2, | 138     REPEAT_Y = 2, | 
| 139     REPEAT = 3 | 139     REPEAT = 3 | 
| 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 bool GetBitmapsNamed(int id, std::vector<SkBitmap*>& bitmaps) const; | 
| 145   virtual SkColor GetColor(int id) const; | 146   virtual SkColor GetColor(int id) const; | 
| 146   virtual bool GetDisplayProperty(int id, int* result) const; | 147   virtual bool GetDisplayProperty(int id, int* result) const; | 
| 147   virtual bool ShouldUseNativeFrame() const; | 148   virtual bool ShouldUseNativeFrame() const; | 
| 148   virtual bool HasCustomImage(int id) const; | 149   virtual bool HasCustomImage(int id) const; | 
| 149   virtual RefCountedMemory* GetRawData(int id) const; | 150   virtual RefCountedMemory* GetRawData(int id) const; | 
| 150 #if defined(TOOLKIT_USES_GTK) | 151 #if defined(TOOLKIT_USES_GTK) | 
| 151   // GdkPixbufs returned by GetPixbufNamed and GetRTLEnabledPixbufNamed are | 152   // GdkPixbufs returned by GetPixbufNamed and GetRTLEnabledPixbufNamed are | 
| 152   // shared instances owned by the theme provider and should not be freed. | 153   // shared instances owned by the theme provider and should not be freed. | 
| 153   virtual GdkPixbuf* GetPixbufNamed(int id) const; | 154   virtual GdkPixbuf* GetPixbufNamed(int id) const; | 
| 154   virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) const; | 155   virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) const; | 
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 291 | 292 | 
| 292   // The number of infobars currently displayed. | 293   // The number of infobars currently displayed. | 
| 293   int number_of_infobars_; | 294   int number_of_infobars_; | 
| 294 | 295 | 
| 295   NotificationRegistrar registrar_; | 296   NotificationRegistrar registrar_; | 
| 296 | 297 | 
| 297   DISALLOW_COPY_AND_ASSIGN(ThemeService); | 298   DISALLOW_COPY_AND_ASSIGN(ThemeService); | 
| 298 }; | 299 }; | 
| 299 | 300 | 
| 300 #endif  // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 301 #endif  // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ | 
| OLD | NEW | 
|---|