| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_COMMON_SYSTEM_LOCALE_LOCALE_OBSERVER_H_ | |
| 6 #define ASH_COMMON_SYSTEM_LOCALE_LOCALE_OBSERVER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "ash/ash_export.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 | |
| 14 class ASH_EXPORT LocaleObserver { | |
| 15 public: | |
| 16 class Delegate { | |
| 17 public: | |
| 18 virtual ~Delegate() {} | |
| 19 | |
| 20 virtual void AcceptLocaleChange() = 0; | |
| 21 virtual void RevertLocaleChange() = 0; | |
| 22 }; | |
| 23 | |
| 24 virtual ~LocaleObserver() {} | |
| 25 | |
| 26 virtual void OnLocaleChanged(Delegate* delegate, | |
| 27 const std::string& cur_locale, | |
| 28 const std::string& from_locale, | |
| 29 const std::string& to_locale) = 0; | |
| 30 }; | |
| 31 | |
| 32 } // namespace ash | |
| 33 | |
| 34 #endif // ASH_COMMON_SYSTEM_LOCALE_LOCALE_OBSERVER_H_ | |
| OLD | NEW |