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

Unified Diff: Source/core/platform/LocalizedStrings.cpp

Issue 24201005: Refactoring: Move queryLocalizedString() to Locale class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/platform/LocalizedStrings.h ('k') | Source/core/platform/text/PlatformLocale.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/LocalizedStrings.cpp
diff --git a/Source/core/platform/LocalizedStrings.cpp b/Source/core/platform/LocalizedStrings.cpp
index 0e144b60dc247ed4769805a12d9b78d8c9a0c9be..c1952729fc364a81213732639a257f6144a77913 100644
--- a/Source/core/platform/LocalizedStrings.cpp
+++ b/Source/core/platform/LocalizedStrings.cpp
@@ -44,34 +44,19 @@ using WebKit::WebString;
namespace WebCore {
-String queryLocalizedString(WebLocalizedString::Name name)
-{
- return WebKit::Platform::current()->queryLocalizedString(name);
-}
-
-String queryLocalizedString(WebLocalizedString::Name name, const String& parameter)
-{
- return WebKit::Platform::current()->queryLocalizedString(name, parameter);
-}
-
-String queryLocalizedString(WebLocalizedString::Name name, const String& parameter1, const String& parameter2)
-{
- return WebKit::Platform::current()->queryLocalizedString(name, parameter1, parameter2);
-}
-
static String query(WebLocalizedString::Name name)
{
- return queryLocalizedString(name);
+ return WebKit::Platform::current()->queryLocalizedString(name);
}
static String query(WebLocalizedString::Name name, const WebString& parameter)
{
- return queryLocalizedString(name, parameter);
+ return WebKit::Platform::current()->queryLocalizedString(name, parameter);
}
static String query(WebLocalizedString::Name name, const WebString& parameter1, const WebString& parameter2)
{
- return queryLocalizedString(name, parameter1, parameter2);
+ return WebKit::Platform::current()->queryLocalizedString(name, parameter1, parameter2);
}
String searchableIndexIntroduction()
@@ -467,16 +452,6 @@ String validationMessageTypeMismatchText()
return query(WebLocalizedString::ValidationTypeMismatch);
}
-String validationMessageTypeMismatchForEmailText()
-{
- return query(WebLocalizedString::ValidationTypeMismatchForEmail);
-}
-
-String validationMessageTypeMismatchForMultipleEmailText()
-{
- return query(WebLocalizedString::ValidationTypeMismatchForMultipleEmail);
-}
-
String validationMessageTypeMismatchForURLText()
{
return query(WebLocalizedString::ValidationTypeMismatchForURL);
@@ -502,11 +477,6 @@ String validationMessageRangeOverflowText(const String& maximum)
return query(WebLocalizedString::ValidationRangeOverflow, maximum);
}
-String validationMessageStepMismatchText(const String& base, const String& step)
-{
- return query(WebLocalizedString::ValidationStepMismatch, base, step);
-}
-
String validationMessageBadInputForNumberText()
{
return query(WebLocalizedString::ValidationBadInputForNumber);
« no previous file with comments | « Source/core/platform/LocalizedStrings.h ('k') | Source/core/platform/text/PlatformLocale.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698