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

Side by Side Diff: content/common/webkitplatformsupport_impl.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/webkitplatformsupport_impl.h ('k') | content/public/common/content_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "content/common/child_thread.h" 6 #include "content/common/child_thread.h"
7 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 7 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
8 #include "content/common/socket_stream_dispatcher.h" 8 #include "content/common/socket_stream_dispatcher.h"
9 #include "content/common/webkitplatformsupport_impl.h" 9 #include "content/common/webkitplatformsupport_impl.h"
10 #include "content/public/common/content_client.h" 10 #include "content/public/common/content_client.h"
(...skipping 10 matching lines...) Expand all
21 21
22 string16 WebKitPlatformSupportImpl::GetLocalizedString(int message_id) { 22 string16 WebKitPlatformSupportImpl::GetLocalizedString(int message_id) {
23 return content::GetContentClient()->GetLocalizedString(message_id); 23 return content::GetContentClient()->GetLocalizedString(message_id);
24 } 24 }
25 25
26 base::StringPiece WebKitPlatformSupportImpl::GetDataResource( 26 base::StringPiece WebKitPlatformSupportImpl::GetDataResource(
27 int resource_id) { 27 int resource_id) {
28 return content::GetContentClient()->GetDataResource(resource_id); 28 return content::GetContentClient()->GetDataResource(resource_id);
29 } 29 }
30 30
31 base::StringPiece WebKitPlatformSupportImpl::GetImageResource(
32 int resource_id,
33 float scale_factor) {
34 return content::GetContentClient()->GetImageResource(resource_id,
35 scale_factor);
36 }
37
31 void WebKitPlatformSupportImpl::GetPlugins( 38 void WebKitPlatformSupportImpl::GetPlugins(
32 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { 39 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) {
33 // This should not be called except in the renderer. 40 // This should not be called except in the renderer.
34 // RendererWebKitPlatformSupportImpl overrides this. 41 // RendererWebKitPlatformSupportImpl overrides this.
35 NOTREACHED(); 42 NOTREACHED();
36 } 43 }
37 44
38 webkit_glue::ResourceLoaderBridge* 45 webkit_glue::ResourceLoaderBridge*
39 WebKitPlatformSupportImpl::CreateResourceLoader( 46 WebKitPlatformSupportImpl::CreateResourceLoader(
40 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) { 47 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 return context.release(); 82 return context.release();
76 } 83 }
77 } 84 }
78 85
79 GpuChannelHostFactory* WebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 86 GpuChannelHostFactory* WebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
80 NOTREACHED(); 87 NOTREACHED();
81 return NULL; 88 return NULL;
82 } 89 }
83 90
84 } // namespace content 91 } // namespace content
OLDNEW
« no previous file with comments | « content/common/webkitplatformsupport_impl.h ('k') | content/public/common/content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698