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

Unified Diff: public/platform/Platform.h

Issue 1115453003: Introduce a Blink API for checking whether a certain locale could be valid. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index b8598e36665f9128c1a0cc67a3f998547a213b9f..afa29267bbad7fb2656bfdad6bc0610000b96357 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -432,6 +432,13 @@ public:
// Returns an interface to the main thread. Can be null if blink was initialized on a thread without a message loop.
BLINK_PLATFORM_EXPORT WebThread* mainThread() const;
+
+ // Localisation --------------------------------------------------------
+
+ // Returns if |locale| is plausibly a syntactically-valid locale string based on BCP 47.
+ virtual bool isValidLocaleSyntax(const WebString& locale) { return true; }
+
+
// Vibration -----------------------------------------------------------
// Starts a vibration for the given duration in milliseconds. If there is currently an active
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698