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

Unified Diff: webkit/glue/webkitplatformsupport_impl.h

Issue 10383006: Add scale factor and 2x resources from webkit and plumb through to ContentClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more test class GetImageResource methods. Created 8 years, 7 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 | « ui/compositor/test/compositor_test_support.cc ('k') | webkit/glue/webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkitplatformsupport_impl.h
diff --git a/webkit/glue/webkitplatformsupport_impl.h b/webkit/glue/webkitplatformsupport_impl.h
index 26fd53703b502372ababbd50b6c18d87d7b1bdd7..c58eb86de7039a7723f29a403e544f1d3a2a2eda 100644
--- a/webkit/glue/webkitplatformsupport_impl.h
+++ b/webkit/glue/webkitplatformsupport_impl.h
@@ -121,6 +121,12 @@ class WEBKIT_GLUE_EXPORT WebKitPlatformSupportImpl :
// specified as BINDATA in the relevant .rc file.
virtual base::StringPiece GetDataResource(int resource_id) = 0;
+ // Returns the raw data for an image resource with a scale factor as close as
+ // is available to |scale_factor|. This resource must have been specified as
+ // BINDATA in the relevant .rc file.
+ virtual base::StringPiece GetImageResource(int resource_id,
+ float scale_factor) = 0;
+
// Returns the list of plugins.
virtual void GetPlugins(bool refresh,
std::vector<webkit::WebPluginInfo>* plugins) = 0;
« no previous file with comments | « ui/compositor/test/compositor_test_support.cc ('k') | webkit/glue/webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698