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_SYSTEM_LOCALE_LOCALE_OBSERVER_H_ |
| 6 #define ASH_SYSTEM_LOCALE_LOCALE_OBSERVER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ash/ash_export.h" |
| 10 |
| 11 namespace ash { |
| 12 |
| 13 class ASH_EXPORT LocaleObserver { |
| 14 public: |
| 15 class Delegate { |
| 16 public: |
| 17 virtual ~Delegate() {} |
| 18 |
| 19 virtual void AcceptLocaleChange() = 0; |
| 20 virtual void RevertLocaleChange() = 0; |
| 21 }; |
| 22 |
| 23 virtual ~LocaleObserver() {} |
| 24 |
| 25 virtual void OnLocaleChanged(Delegate* delegate, |
| 26 const std::string& cur_locale, |
| 27 const std::string& from_locale, |
| 28 const std::string& to_locale) = 0; |
| 29 }; |
| 30 |
| 31 } // namespace ash |
| 32 |
| 33 #endif // ASH_SYSTEM_LOCALE_LOCALE_OBSERVER_H_ |
OLD | NEW |