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

Unified Diff: ui/base/theme_provider.h

Issue 10783015: Add ability to store hidpi theme images in data pack (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « chrome/browser/ui/webui/theme_source.cc ('k') | ui/gfx/image/image_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/theme_provider.h
diff --git a/ui/base/theme_provider.h b/ui/base/theme_provider.h
index 7b59e11c7e1b0cfa528a99ca39adc23f233f758d..f5d1b05edfda12608038566d6a75f0b66ee18fe9 100644
--- a/ui/base/theme_provider.h
+++ b/ui/base/theme_provider.h
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/base/layout.h"
#include "ui/base/ui_export.h"
#if defined(OS_MACOSX)
@@ -77,7 +78,9 @@ class UI_EXPORT ThemeProvider {
// Reads the image data from the theme file into the specified vector. Only
// valid for un-themed resources and the themed IDR_THEME_NTP_* in most
// implementations of ThemeProvider. Returns NULL on error.
- virtual base::RefCountedMemory* GetRawData(int id) const = 0;
+ virtual base::RefCountedMemory* GetRawData(
+ int id,
+ ui::ScaleFactor scale_factor) const = 0;
#if defined(OS_MACOSX) && !defined(TOOLKIT_VIEWS)
// Gets the NSImage with the specified |id|.
« no previous file with comments | « chrome/browser/ui/webui/theme_source.cc ('k') | ui/gfx/image/image_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698