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

Side by Side Diff: webkit/support/test_webkit_platform_support.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/support/platform_support_win.cc ('k') | webkit/tools/test_shell/test_shell_gtk.cc » ('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 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 5 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual size_t audioHardwareBufferSize() OVERRIDE; 105 virtual size_t audioHardwareBufferSize() OVERRIDE;
106 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, 106 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize,
107 unsigned numberOfChannels, double sampleRate, 107 unsigned numberOfChannels, double sampleRate,
108 WebKit::WebAudioDevice::RenderCallback*) OVERRIDE; 108 WebKit::WebAudioDevice::RenderCallback*) OVERRIDE;
109 109
110 virtual void sampleGamepads(WebKit::WebGamepads& data); 110 virtual void sampleGamepads(WebKit::WebGamepads& data);
111 void setGamepadData(const WebKit::WebGamepads& data); 111 void setGamepadData(const WebKit::WebGamepads& data);
112 112
113 virtual string16 GetLocalizedString(int message_id) OVERRIDE; 113 virtual string16 GetLocalizedString(int message_id) OVERRIDE;
114 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE; 114 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE;
115 virtual base::StringPiece GetImageResource(int resource_id,
116 float scale_factor) OVERRIDE;
115 virtual void GetPlugins(bool refresh, 117 virtual void GetPlugins(bool refresh,
116 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; 118 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
117 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( 119 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
118 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) 120 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
119 OVERRIDE; 121 OVERRIDE;
120 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( 122 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
121 WebKit::WebSocketStreamHandle* handle, 123 WebKit::WebSocketStreamHandle* handle,
122 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; 124 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE;
123 125
124 private: 126 private:
(...skipping 12 matching lines...) Expand all
137 bool unit_test_mode_; 139 bool unit_test_mode_;
138 WebKit::WebGamepads gamepad_data_; 140 WebKit::WebGamepads gamepad_data_;
139 141
140 #if defined(OS_WIN) || defined(OS_MACOSX) 142 #if defined(OS_WIN) || defined(OS_MACOSX)
141 WebKit::WebThemeEngine* active_theme_engine_; 143 WebKit::WebThemeEngine* active_theme_engine_;
142 #endif 144 #endif
143 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 145 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
144 }; 146 };
145 147
146 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 148 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « webkit/support/platform_support_win.cc ('k') | webkit/tools/test_shell/test_shell_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698