Upstream version 8.36.169.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / tizen / tizen_locale_listener.h
index e41e742..4fb3641 100644 (file)
 
 namespace xwalk {
 
+// FIXME: Do we need to watch system locale change
+// now (we do not keep the cache of the installed
+// apps anymore)? This class should probably be
+// removed.
 class TizenLocaleListener : public base::SimpleThread {
 public:
-    TizenLocaleListener();
-    virtual ~TizenLocaleListener();
-
-    virtual void Run() OVERRIDE;
-
-    // Get the latest application locale from system.
-    // locale is a langtag defined in [BCP47]
-    std::string GetLocale() const;
-    // Set the locale and apply this locale to all applications.
-    // Locale is a langtag defined in [BCP47].
-    // This function will called by TizenLocaleListener when locale is changed.
-    void SetLocale(const std::string& locale);
-
 private:
-    GMainLoop*  main_loop_;
-    // The locale is a langtag defined in [BCP47]
-    std::string locale_;
+ public:
+  TizenLocaleListener();
+  virtual ~TizenLocaleListener();
+
+  virtual void Run() OVERRIDE;
+
+  // Get the latest application locale from system.
+  // locale is a langtag defined in [BCP47]
+  std::string GetLocale() const;
+  // Set the locale and apply this locale to all applications.
+  // Locale is a langtag defined in [BCP47].
+  // This function will called by TizenLocaleListener when locale is changed.
+  void SetLocale(const std::string& locale);
+
+ private:
+  GMainLoop*  main_loop_;
+  // The locale is a langtag defined in [BCP47]
+  std::string locale_;
 };
 
 }  // namespace xwalk