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

Unified Diff: content/public/common/content_client.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 | « content/common/webkitplatformsupport_impl.cc ('k') | content/shell/shell_content_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/content_client.h
diff --git a/content/public/common/content_client.h b/content/public/common/content_client.h
index 137164130de81914bfa0b9b2509f24682f928a26..61ad9b986969df96ae8fe1c8736fe78eda90b54a 100644
--- a/content/public/common/content_client.h
+++ b/content/public/common/content_client.h
@@ -117,6 +117,11 @@ class CONTENT_EXPORT ContentClient {
// Return the contents of a resource in a StringPiece given the resource id.
virtual base::StringPiece GetDataResource(int resource_id) const = 0;
+ // Return the contents of an image resource in a StringPiece given the
+ // resource id.
+ virtual base::StringPiece GetImageResource(int resource_id,
+ float scale_factor) const = 0;
+
#if defined(OS_WIN)
// Allows the embedder to sandbox a plugin, and apply a custom policy.
virtual bool SandboxPlugin(CommandLine* command_line,
« no previous file with comments | « content/common/webkitplatformsupport_impl.cc ('k') | content/shell/shell_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698