OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_NETWORK_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 virtual menus::MenuModel::ItemType GetTypeAt(int index) const; | 64 virtual menus::MenuModel::ItemType GetTypeAt(int index) const; |
65 virtual int GetCommandIdAt(int index) const { return index; } | 65 virtual int GetCommandIdAt(int index) const { return index; } |
66 virtual string16 GetLabelAt(int index) const; | 66 virtual string16 GetLabelAt(int index) const; |
67 virtual bool IsLabelDynamicAt(int index) const { return true; } | 67 virtual bool IsLabelDynamicAt(int index) const { return true; } |
68 virtual const gfx::Font* GetLabelFontAt(int index) const; | 68 virtual const gfx::Font* GetLabelFontAt(int index) const; |
69 virtual bool GetAcceleratorAt(int index, | 69 virtual bool GetAcceleratorAt(int index, |
70 menus::Accelerator* accelerator) const { return false; } | 70 menus::Accelerator* accelerator) const { return false; } |
71 virtual bool IsItemCheckedAt(int index) const; | 71 virtual bool IsItemCheckedAt(int index) const; |
72 virtual int GetGroupIdAt(int index) const { return 0; } | 72 virtual int GetGroupIdAt(int index) const { return 0; } |
73 virtual bool GetIconAt(int index, SkBitmap* icon) const; | 73 virtual bool GetIconAt(int index, SkBitmap* icon) const; |
| 74 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { |
| 75 return NULL; |
| 76 } |
74 virtual bool IsEnabledAt(int index) const; | 77 virtual bool IsEnabledAt(int index) const; |
75 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } | 78 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } |
76 virtual void HighlightChangedTo(int index) {} | 79 virtual void HighlightChangedTo(int index) {} |
77 virtual void ActivatedAt(int index); | 80 virtual void ActivatedAt(int index); |
78 virtual void MenuWillShow() {} | 81 virtual void MenuWillShow() {} |
79 | 82 |
80 // AnimationDelegate implementation. | 83 // AnimationDelegate implementation. |
81 virtual void AnimationProgressed(const Animation* animation); | 84 virtual void AnimationProgressed(const Animation* animation); |
82 | 85 |
83 // NetworkLibrary::Observer implementation. | 86 // NetworkLibrary::Observer implementation. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 172 |
170 // The duration of the icon throbbing in milliseconds. | 173 // The duration of the icon throbbing in milliseconds. |
171 static const int kThrobDuration; | 174 static const int kThrobDuration; |
172 | 175 |
173 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); | 176 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); |
174 }; | 177 }; |
175 | 178 |
176 } // namespace chromeos | 179 } // namespace chromeos |
177 | 180 |
178 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ | 181 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ |
OLD | NEW |