OLD | NEW |
(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_ |
OLD | NEW |