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

Side by Side Diff: ash/system/locale/tray_locale.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/system/locale/locale_observer.h ('k') | ash/system/locale/tray_locale.cc » ('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_TRAY_LOCALE_H_
6 #define ASH_SYSTEM_LOCALE_TRAY_LOCALE_H_
7 #pragma once
8
9 #include <string>
10
11 #include "ash/system/locale/locale_observer.h"
12 #include "ash/system/tray/tray_image_item.h"
13
14 namespace ash {
15 namespace internal {
16
17 namespace tray {
18 class LocaleNotificationView;
19 }
20
21 class TrayLocale : public TrayImageItem,
22 public LocaleObserver {
23 public:
24 TrayLocale();
25 virtual ~TrayLocale();
26
27 private:
28 // Overridden from TrayImageItem.
29 virtual bool GetInitialVisibility() OVERRIDE;
30 virtual views::View* CreateNotificationView(
31 user::LoginStatus status) OVERRIDE;
32 virtual void DestroyNotificationView() OVERRIDE;
33
34 // Overridden from LocaleObserver.
35 virtual void OnLocaleChanged(LocaleObserver::Delegate* delegate,
36 const std::string& cur_locale,
37 const std::string& from_locale,
38 const std::string& to_locale) OVERRIDE;
39
40 tray::LocaleNotificationView* notification_;
41 LocaleObserver::Delegate* delegate_;
42 std::string cur_locale_;
43 std::string from_locale_;
44 std::string to_locale_;
45
46 DISALLOW_COPY_AND_ASSIGN(TrayLocale);
47 };
48
49 } // namespace internal
50 } // namespace ash
51
52 #endif // ASH_SYSTEM_LOCALE_TRAY_LOCALE_H_
OLDNEW
« no previous file with comments | « ash/system/locale/locale_observer.h ('k') | ash/system/locale/tray_locale.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698