• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_
6 #define ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_
7 
8 #include <string>
9 
10 #include "ash/system/locale/locale_observer.h"
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 
14 namespace ash {
15 namespace internal {
16 
17 // Observes the locale change and creates rich notification for the change.
18 class LocaleNotificationController : public LocaleObserver {
19  public:
20   LocaleNotificationController();
21   virtual ~LocaleNotificationController();
22 
23  private:
24   // Overridden from LocaleObserver.
25   virtual void OnLocaleChanged(LocaleObserver::Delegate* delegate,
26                                const std::string& cur_locale,
27                                const std::string& from_locale,
28                                const std::string& to_locale) OVERRIDE;
29 
30   LocaleObserver::Delegate* delegate_;
31   std::string cur_locale_;
32   std::string from_locale_;
33   std::string to_locale_;
34 
35   DISALLOW_COPY_AND_ASSIGN(LocaleNotificationController);
36 };
37 
38 }  // namespace internal
39 }  // namespace ash
40 
41 #endif  // ASH_SYSTEM_LOCALE_LOCALE_NOTIFICATION_CONTROLLER_H_
42