| Index: chrome/browser/browser_theme_provider.h
|
| ===================================================================
|
| --- chrome/browser/browser_theme_provider.h (revision 22426)
|
| +++ chrome/browser/browser_theme_provider.h (working copy)
|
| @@ -154,6 +154,7 @@
|
| virtual bool GetDisplayProperty(int id, int* result);
|
| virtual bool ShouldUseNativeFrame();
|
| virtual bool HasCustomImage(int id);
|
| + virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data);
|
| #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
|
| virtual GdkPixbuf* GetPixbufNamed(int id);
|
| virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id);
|
| @@ -176,6 +177,10 @@
|
| // locally customized.)
|
| std::string GetThemeID();
|
|
|
| + // Reads the image data from the theme file into the specified vector. Returns
|
| + // true on success.
|
| + bool ReadThemeFileData(int id, std::vector<unsigned char>* raw_data);
|
| +
|
| // Convert a bitfield alignment into a string like "top left". Public so that
|
| // it can be used to generate CSS values. Takes a bitfield of AlignmentMasks.
|
| static std::string AlignmentToString(int alignment);
|
| @@ -229,11 +234,8 @@
|
| typedef std::map<const std::string, SkColor> ColorMap;
|
| typedef std::map<const std::string, skia::HSL> TintMap;
|
| typedef std::map<const std::string, int> DisplayPropertyMap;
|
| + typedef std::map<const int, std::vector<unsigned char> > RawDataMap;
|
|
|
| - // Reads the image data from the theme file into the specified vector. Returns
|
| - // true on success.
|
| - bool ReadThemeFileData(int id, std::vector<unsigned char>* raw_data);
|
| -
|
| // Returns the string key for the given tint |id| TINT_* enum value.
|
| const std::string GetTintKey(int id);
|
|
|
| @@ -316,6 +318,7 @@
|
| ImageMap images_;
|
| ColorMap colors_;
|
| TintMap tints_;
|
| + RawDataMap raw_data_;
|
| DisplayPropertyMap display_properties_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider);
|
|
|