| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ | 5 #ifndef ASH_COMMON_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ |
| 6 #define ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ | 6 #define ASH_COMMON_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/system/locale/locale_observer.h" | 10 #include "ash/common/system/locale/locale_observer.h" |
| 11 #include "base/compiler_specific.h" | |
| 12 #include "base/macros.h" | 11 #include "base/macros.h" |
| 13 | 12 |
| 14 namespace ash { | 13 namespace ash { |
| 15 | 14 |
| 16 // Observes the locale change and creates rich notification for the change. | 15 // Observes the locale change and creates rich notification for the change. |
| 17 class LocaleNotificationController : public LocaleObserver { | 16 class LocaleNotificationController : public LocaleObserver { |
| 18 public: | 17 public: |
| 19 LocaleNotificationController(); | 18 LocaleNotificationController(); |
| 20 ~LocaleNotificationController() override; | 19 ~LocaleNotificationController() override; |
| 21 | 20 |
| 22 private: | 21 private: |
| 23 // Overridden from LocaleObserver. | 22 // Overridden from LocaleObserver. |
| 24 void OnLocaleChanged(LocaleObserver::Delegate* delegate, | 23 void OnLocaleChanged(LocaleObserver::Delegate* delegate, |
| 25 const std::string& cur_locale, | 24 const std::string& cur_locale, |
| 26 const std::string& from_locale, | 25 const std::string& from_locale, |
| 27 const std::string& to_locale) override; | 26 const std::string& to_locale) override; |
| 28 | 27 |
| 29 std::string cur_locale_; | 28 std::string cur_locale_; |
| 30 std::string from_locale_; | 29 std::string from_locale_; |
| 31 std::string to_locale_; | 30 std::string to_locale_; |
| 32 | 31 |
| 33 DISALLOW_COPY_AND_ASSIGN(LocaleNotificationController); | 32 DISALLOW_COPY_AND_ASSIGN(LocaleNotificationController); |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 } // namespace ash | 35 } // namespace ash |
| 37 | 36 |
| 38 #endif // ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ | 37 #endif // ASH_COMMON_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_ |
| OLD | NEW |