diff options
author | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-25 05:37:37 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-25 05:37:37 +0000 |
commit | 8ef5716c097776a9ae5c93e895c0effe7695a985 (patch) | |
tree | 197a96d2fdcf0ffcd0e90f205222b877b14506e5 /webkit/support/test_webkit_client.h | |
parent | 7fb865207d11400bc69b15fef20c5e4826c221c2 (diff) | |
download | chromium_src-8ef5716c097776a9ae5c93e895c0effe7695a985.zip chromium_src-8ef5716c097776a9ae5c93e895c0effe7695a985.tar.gz chromium_src-8ef5716c097776a9ae5c93e895c0effe7695a985.tar.bz2 |
Add form validation message strings.
* webkit/glue/
- Add overloads of queryLocalizedString() functions
They will be added to WebKit::WebKitClient later.
- Add implementations for WebLocalizedString::Validation*
- Add message strings
The English strings are different from WebKit's to avoid the brusque
WebKit's strings.
Port some messages from Mozilla.
* webkit/tools/test_shell/ and webkit/support/
Hook queryLocalizedString() functions in order to return messages same as
WebKit in layout test.
BUG=28264
TEST=LayoutTests/fast/forms/validationMessage.html
Review URL: http://codereview.chromium.org/4678006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67382 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/test_webkit_client.h')
-rw-r--r-- | webkit/support/test_webkit_client.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/support/test_webkit_client.h b/webkit/support/test_webkit_client.h index 6f1d28d..07beae7 100644 --- a/webkit/support/test_webkit_client.h +++ b/webkit/support/test_webkit_client.h @@ -47,6 +47,13 @@ class TestWebKitClient : public webkit_glue::WebKitClientImpl { virtual void prefetchHostName(const WebKit::WebString&); virtual WebKit::WebURLLoader* createURLLoader(); virtual WebKit::WebData loadResource(const char* name); + virtual WebKit::WebString queryLocalizedString( + WebKit::WebLocalizedString::Name name); + virtual WebKit::WebString queryLocalizedString( + WebKit::WebLocalizedString::Name name, const WebKit::WebString& value); + virtual WebKit::WebString queryLocalizedString( + WebKit::WebLocalizedString::Name name, + const WebKit::WebString& value1, const WebKit::WebString& value2); virtual WebKit::WebString defaultLocale(); virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( const WebKit::WebString& path, unsigned quota); |