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

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

Issue 10391177: Add TrayLocale for locale change notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase w/ icons in tot Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/locale/tray_locale.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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_
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/system/locale/tray_locale.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698