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

Side by Side Diff: content/common/webkitplatformsupport_impl.cc

Issue 10387010: Select theme resources from ResourceBundle at requested scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. 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
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"
11 #include "content/public/common/content_switches.h" 11 #include "content/public/common/content_switches.h"
12 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" 12 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() { 16 WebKitPlatformSupportImpl::WebKitPlatformSupportImpl() {
17 } 17 }
18 18
19 WebKitPlatformSupportImpl::~WebKitPlatformSupportImpl() { 19 WebKitPlatformSupportImpl::~WebKitPlatformSupportImpl() {
20 } 20 }
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) {
28 return content::GetContentClient()->GetDataResource(resource_id);
29 }
30
31 base::StringPiece WebKitPlatformSupportImpl::GetImageResource(
32 int resource_id, 27 int resource_id,
33 float scale_factor) { 28 ui::ScaleFactor scale_factor) {
34 return content::GetContentClient()->GetImageResource(resource_id, 29 return content::GetContentClient()->GetDataResource(resource_id,
35 scale_factor); 30 scale_factor);
36 } 31 }
37 32
38 void WebKitPlatformSupportImpl::GetPlugins( 33 void WebKitPlatformSupportImpl::GetPlugins(
39 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { 34 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) {
40 // This should not be called except in the renderer. 35 // This should not be called except in the renderer.
41 // RendererWebKitPlatformSupportImpl overrides this. 36 // RendererWebKitPlatformSupportImpl overrides this.
42 NOTREACHED(); 37 NOTREACHED();
43 } 38 }
44 39
45 webkit_glue::ResourceLoaderBridge* 40 webkit_glue::ResourceLoaderBridge*
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 return context.release(); 77 return context.release();
83 } 78 }
84 } 79 }
85 80
86 GpuChannelHostFactory* WebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 81 GpuChannelHostFactory* WebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
87 NOTREACHED(); 82 NOTREACHED();
88 return NULL; 83 return NULL;
89 } 84 }
90 85
91 } // namespace content 86 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698