Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: ash/common/system/locale/locale_observer.h

Issue 2082193002: mash: Migrate locale observer and notification to common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Format Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_OBSERVER_H_ 5 #ifndef ASH_COMMON_SYSTEM_LOCALE_LOCALE_OBSERVER_H_
6 #define ASH_SYSTEM_LOCALE_LOCALE_OBSERVER_H_ 6 #define ASH_COMMON_SYSTEM_LOCALE_LOCALE_OBSERVER_H_
7
8 #include <string>
7 9
8 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
9 11
10 namespace ash { 12 namespace ash {
11 13
12 class ASH_EXPORT LocaleObserver { 14 class ASH_EXPORT LocaleObserver {
13 public: 15 public:
14 class Delegate { 16 class Delegate {
15 public: 17 public:
16 virtual ~Delegate() {} 18 virtual ~Delegate() {}
17 19
18 virtual void AcceptLocaleChange() = 0; 20 virtual void AcceptLocaleChange() = 0;
19 virtual void RevertLocaleChange() = 0; 21 virtual void RevertLocaleChange() = 0;
20 }; 22 };
21 23
22 virtual ~LocaleObserver() {} 24 virtual ~LocaleObserver() {}
23 25
24 virtual void OnLocaleChanged(Delegate* delegate, 26 virtual void OnLocaleChanged(Delegate* delegate,
25 const std::string& cur_locale, 27 const std::string& cur_locale,
26 const std::string& from_locale, 28 const std::string& from_locale,
27 const std::string& to_locale) = 0; 29 const std::string& to_locale) = 0;
28 }; 30 };
29 31
30 } // namespace ash 32 } // namespace ash
31 33
32 #endif // ASH_SYSTEM_LOCALE_LOCALE_OBSERVER_H_ 34 #endif // ASH_COMMON_SYSTEM_LOCALE_LOCALE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698