Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: app/theme_provider.h

Issue 159891: Make the DOMUIThemeSource load and pass through a PNG, rather than relying on... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/browser_theme_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/theme_provider.h
===================================================================
--- app/theme_provider.h (revision 22426)
+++ app/theme_provider.h (working copy)
@@ -5,6 +5,8 @@
#ifndef APP_THEME_PROVIDER_H_
#define APP_THEME_PROVIDER_H_
+#include <vector>
+
#include "base/basictypes.h"
#include "third_party/skia/include/core/SkColor.h"
@@ -58,6 +60,10 @@
// doesn't provide a certain image, but custom themes might (badges, etc).
virtual bool HasCustomImage(int id) = 0;
+ // Reads the image data from the theme file into the specified vector. Returns
+ // true on success.
+ virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) = 0;
+
#if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
// Gets the GdkPixbuf with the specified |id|. Returns a pointer to a shared
// instance of the GdkPixbuf. This shared GdkPixbuf is owned by the theme
« no previous file with comments | « no previous file | chrome/browser/browser_theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698