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

Unified Diff: Source/core/platform/text/PlatformLocale.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/text/PlatformLocale.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/text/PlatformLocale.cpp
diff --git a/Source/core/platform/text/PlatformLocale.cpp b/Source/core/platform/text/PlatformLocale.cpp
index c959ac946d4ea771f7823bc946bb8cfd667e2fff..1b09c6314aeb93eec34747f5a062570ecb0440ac 100644
--- a/Source/core/platform/text/PlatformLocale.cpp
+++ b/Source/core/platform/text/PlatformLocale.cpp
@@ -33,10 +33,14 @@
#include "core/platform/LocalizedStrings.h"
#include "core/platform/text/DateTimeFormat.h"
+#include "public/platform/Platform.h"
#include "wtf/text/StringBuilder.h"
namespace WebCore {
+using WebKit::Platform;
+using WebKit::WebLocalizedString;
+
class DateTimeStringBuilder : private DateTimeFormat::TokenHandler {
WTF_MAKE_NONCOPYABLE(DateTimeStringBuilder);
@@ -180,6 +184,24 @@ Locale::~Locale()
{
}
+String Locale::queryString(WebLocalizedString::Name name)
+{
+ // FIXME: Returns a string locazlied for this locale.
+ return Platform::current()->queryLocalizedString(name);
+}
+
+String Locale::queryString(WebLocalizedString::Name name, const String& parameter)
+{
+ // FIXME: Returns a string locazlied for this locale.
+ return Platform::current()->queryLocalizedString(name, parameter);
+}
+
+String Locale::queryString(WebLocalizedString::Name name, const String& parameter1, const String& parameter2)
+{
+ // FIXME: Returns a string locazlied for this locale.
+ return Platform::current()->queryLocalizedString(name, parameter1, parameter2);
+}
+
void Locale::setLocaleData(const Vector<String, DecimalSymbolsSize>& symbols, const String& positivePrefix, const String& positiveSuffix, const String& negativePrefix, const String& negativeSuffix)
{
for (size_t i = 0; i < symbols.size(); ++i) {
« no previous file with comments | « Source/core/platform/text/PlatformLocale.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698