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

Unified Diff: webkit/support/test_webkit_platform_support.h

Issue 11014014: Implement hyphenation for DumpRenderTree. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: webkit/support/test_webkit_platform_support.h
===================================================================
--- webkit/support/test_webkit_platform_support.h (revision 160091)
+++ webkit/support/test_webkit_platform_support.h (working copy)
@@ -25,6 +25,8 @@
class WebAudioDevice;
}
+typedef struct _HyphenDict HyphenDict;
+
// An implementation of WebKitPlatformSupport for tests.
class TestWebKitPlatformSupport :
public webkit_glue::WebKitPlatformSupportImpl {
@@ -120,6 +122,12 @@
WebKit::WebMediaStreamCenterClient* client) OVERRIDE;
virtual WebKit::WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(
WebKit::WebRTCPeerConnectionHandlerClient* client) OVERRIDE;
+ virtual bool canHyphenate(const WebKit::WebString& locale) OVERRIDE;
+ virtual size_t computeLastHyphenLocation(
+ const char16* characters,
+ size_t length,
+ size_t before_index,
+ const WebKit::WebString& locale) OVERRIDE;
private:
TestShellWebMimeRegistryImpl mime_registry_;
@@ -137,6 +145,7 @@
bool unit_test_mode_;
WebKit::WebGamepads gamepad_data_;
WebKit::Platform* shadow_platform_delegate_;
+ HyphenDict* hyphen_dictionary_;
#if defined(OS_WIN) || defined(OS_MACOSX)
WebKit::WebThemeEngine* active_theme_engine_;

Powered by Google App Engine
This is Rietveld 408576698