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

Unified Diff: content/test/test_content_client.cc

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/test/test_content_client.h ('k') | ui/compositor/test/compositor_test_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_content_client.cc
diff --git a/content/test/test_content_client.cc b/content/test/test_content_client.cc
index 4f7bce994ca3014ff4f33c85f4017a8172de6d3c..11d9bb6e07390197fa81bc4e72da07cf36fda924 100644
--- a/content/test/test_content_client.cc
+++ b/content/test/test_content_client.cc
@@ -64,6 +64,14 @@ base::StringPiece TestContentClient::GetDataResource(int resource_id) const {
return resource;
}
+base::StringPiece TestContentClient::GetImageResource(
+ int resource_id,
+ float scale_factor) const {
+ base::StringPiece resource;
+ data_pack_.GetStringPiece(resource_id, &resource);
+ return resource;
+}
+
#if defined(OS_WIN)
bool TestContentClient::SandboxPlugin(CommandLine* command_line,
sandbox::TargetPolicy* policy) {
« no previous file with comments | « content/test/test_content_client.h ('k') | ui/compositor/test/compositor_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698