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

Side by Side Diff: webkit/support/test_webkit_platform_support.h

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 #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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual double audioHardwareSampleRate() OVERRIDE; 104 virtual double audioHardwareSampleRate() OVERRIDE;
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(
115 virtual base::StringPiece GetImageResource(int resource_id, 115 int resource_id,
116 float scale_factor) OVERRIDE; 116 ui::ScaleFactor scale_factor) OVERRIDE;
117 virtual void GetPlugins(bool refresh, 117 virtual void GetPlugins(bool refresh,
118 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; 118 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
119 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( 119 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
120 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) 120 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
121 OVERRIDE; 121 OVERRIDE;
122 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( 122 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
123 WebKit::WebSocketStreamHandle* handle, 123 WebKit::WebSocketStreamHandle* handle,
124 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE; 124 webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE;
125 125
126 private: 126 private:
(...skipping 12 matching lines...) Expand all
139 bool unit_test_mode_; 139 bool unit_test_mode_;
140 WebKit::WebGamepads gamepad_data_; 140 WebKit::WebGamepads gamepad_data_;
141 141
142 #if defined(OS_WIN) || defined(OS_MACOSX) 142 #if defined(OS_WIN) || defined(OS_MACOSX)
143 WebKit::WebThemeEngine* active_theme_engine_; 143 WebKit::WebThemeEngine* active_theme_engine_;
144 #endif 144 #endif
145 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 145 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
146 }; 146 };
147 147
148 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 148 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698