OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_STATUS_LANGUAGE_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_LANGUAGE_MENU_BUTTON_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_LANGUAGE_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_LANGUAGE_MENU_BUTTON_H_ |
7 | 7 |
8 #include "app/menus/simple_menu_model.h" | 8 #include "app/menus/simple_menu_model.h" |
9 #include "chrome/browser/chromeos/cros/language_library.h" | 9 #include "chrome/browser/chromeos/cros/language_library.h" |
10 #include "chrome/browser/chromeos/status/status_area_button.h" | 10 #include "chrome/browser/chromeos/status/status_area_button.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual bool GetIconAt(int index, SkBitmap* icon) const; | 45 virtual bool GetIconAt(int index, SkBitmap* icon) const; |
46 virtual bool IsEnabledAt(int index) const; | 46 virtual bool IsEnabledAt(int index) const; |
47 virtual menus::MenuModel* GetSubmenuModelAt(int index) const; | 47 virtual menus::MenuModel* GetSubmenuModelAt(int index) const; |
48 virtual void HighlightChangedTo(int index); | 48 virtual void HighlightChangedTo(int index); |
49 virtual void ActivatedAt(int index); | 49 virtual void ActivatedAt(int index); |
50 virtual void MenuWillShow(); | 50 virtual void MenuWillShow(); |
51 | 51 |
52 // LanguageLibrary::Observer implementation. | 52 // LanguageLibrary::Observer implementation. |
53 virtual void InputMethodChanged(LanguageLibrary* obj); | 53 virtual void InputMethodChanged(LanguageLibrary* obj); |
54 virtual void ImePropertiesChanged(LanguageLibrary* obj); | 54 virtual void ImePropertiesChanged(LanguageLibrary* obj); |
55 virtual void FocusChanged(LanguageLibrary* obj); | |
56 | 55 |
57 // NotificationObserver implementation. | 56 // NotificationObserver implementation. |
58 virtual void Observe(NotificationType type, | 57 virtual void Observe(NotificationType type, |
59 const NotificationSource& source, | 58 const NotificationSource& source, |
60 const NotificationDetails& details) {} | 59 const NotificationDetails& details) {} |
61 | 60 |
62 protected: | 61 protected: |
63 // views::View implementation. | 62 // views::View implementation. |
64 virtual void LocaleChanged(); | 63 virtual void LocaleChanged(); |
65 | 64 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 views::Menu2 language_menu_; | 105 views::Menu2 language_menu_; |
107 | 106 |
108 StatusAreaHost* host_; | 107 StatusAreaHost* host_; |
109 | 108 |
110 DISALLOW_COPY_AND_ASSIGN(LanguageMenuButton); | 109 DISALLOW_COPY_AND_ASSIGN(LanguageMenuButton); |
111 }; | 110 }; |
112 | 111 |
113 } // namespace chromeos | 112 } // namespace chromeos |
114 | 113 |
115 #endif // CHROME_BROWSER_CHROMEOS_STATUS_LANGUAGE_MENU_BUTTON_H_ | 114 #endif // CHROME_BROWSER_CHROMEOS_STATUS_LANGUAGE_MENU_BUTTON_H_ |
OLD | NEW |