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

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

Issue 9380002: Add a mock-hyphenation functions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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 | « no previous file | webkit/support/test_webkit_platform_support.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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 // Mock out the WebAudioDevice since the real one 104 // Mock out the WebAudioDevice since the real one
105 // talks with the browser process. 105 // talks with the browser process.
106 virtual double audioHardwareSampleRate() OVERRIDE; 106 virtual double audioHardwareSampleRate() OVERRIDE;
107 virtual size_t audioHardwareBufferSize() OVERRIDE; 107 virtual size_t audioHardwareBufferSize() OVERRIDE;
108 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, 108 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize,
109 unsigned numberOfChannels, double sampleRate, 109 unsigned numberOfChannels, double sampleRate,
110 WebKit::WebAudioDevice::RenderCallback*) OVERRIDE; 110 WebKit::WebAudioDevice::RenderCallback*) OVERRIDE;
111 111
112 // Returns whether we can support hyphenation for the given locale.
113 // TODO(hbono): Add OVERRIDE when WebKitPlatformSupport adds these methods.
114 virtual bool canHyphenate(const WebKit::WebString& locale);
115 virtual size_t lastHyphenLocation(const char16* characters,
116 size_t length,
117 size_t index,
118 const WebKit::WebString& locale);
119
112 virtual void sampleGamepads(WebKit::WebGamepads& data); 120 virtual void sampleGamepads(WebKit::WebGamepads& data);
113 void setGamepadData(const WebKit::WebGamepads& data); 121 void setGamepadData(const WebKit::WebGamepads& data);
114 122
115 virtual string16 GetLocalizedString(int message_id) OVERRIDE; 123 virtual string16 GetLocalizedString(int message_id) OVERRIDE;
116 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE; 124 virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE;
117 virtual void GetPlugins(bool refresh, 125 virtual void GetPlugins(bool refresh,
118 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; 126 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
119 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( 127 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
120 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) 128 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
121 OVERRIDE; 129 OVERRIDE;
(...skipping 16 matching lines...) Expand all
138 bool unit_test_mode_; 146 bool unit_test_mode_;
139 WebKit::WebGamepads gamepad_data_; 147 WebKit::WebGamepads gamepad_data_;
140 148
141 #if defined(OS_WIN) || defined(OS_MACOSX) 149 #if defined(OS_WIN) || defined(OS_MACOSX)
142 WebKit::WebThemeEngine* active_theme_engine_; 150 WebKit::WebThemeEngine* active_theme_engine_;
143 #endif 151 #endif
144 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 152 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
145 }; 153 };
146 154
147 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 155 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698