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.
5 #ifndef ASH_SYSTEM_LOCALE_LOCALE_OBSERVER_H_
6 #define ASH_SYSTEM_LOCALE_LOCALE_OBSERVER_H_
8 #include "ash/ash_export.h"
12 class ASH_EXPORT LocaleObserver
{
16 virtual ~Delegate() {}
18 virtual void AcceptLocaleChange() = 0;
19 virtual void RevertLocaleChange() = 0;
22 virtual ~LocaleObserver() {}
24 virtual void OnLocaleChanged(Delegate
* delegate
,
25 const std::string
& cur_locale
,
26 const std::string
& from_locale
,
27 const std::string
& to_locale
) = 0;
32 #endif // ASH_SYSTEM_LOCALE_LOCALE_OBSERVER_H_