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

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

Issue 2420753002: ash: Use mojo LocaleNotificationController interface. (Closed)
Patch Set: Uniquify callbacks Created 4 years, 2 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
(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_
OLDNEW
« no previous file with comments | « ash/common/system/locale/locale_notification_controller.cc ('k') | ash/common/system/tray/system_tray_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698