| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual int GetItemCount() const; | 92 virtual int GetItemCount() const; |
| 93 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; | 93 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; |
| 94 virtual int GetCommandIdAt(int index) const { return index; } | 94 virtual int GetCommandIdAt(int index) const { return index; } |
| 95 virtual string16 GetLabelAt(int index) const; | 95 virtual string16 GetLabelAt(int index) const; |
| 96 virtual bool IsItemDynamicAt(int index) const { return true; } | 96 virtual bool IsItemDynamicAt(int index) const { return true; } |
| 97 virtual const gfx::Font* GetLabelFontAt(int index) const; | 97 virtual const gfx::Font* GetLabelFontAt(int index) const; |
| 98 virtual bool GetAcceleratorAt(int index, | 98 virtual bool GetAcceleratorAt(int index, |
| 99 ui::Accelerator* accelerator) const { return false; } | 99 ui::Accelerator* accelerator) const { return false; } |
| 100 virtual bool IsItemCheckedAt(int index) const; | 100 virtual bool IsItemCheckedAt(int index) const; |
| 101 virtual int GetGroupIdAt(int index) const { return 0; } | 101 virtual int GetGroupIdAt(int index) const { return 0; } |
| 102 virtual bool GetIconAt(int index, SkBitmap* icon) const; | 102 virtual bool GetIconAt(int index, SkBitmap* icon); |
| 103 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { | 103 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { |
| 104 return NULL; | 104 return NULL; |
| 105 } | 105 } |
| 106 virtual bool IsEnabledAt(int index) const; | 106 virtual bool IsEnabledAt(int index) const; |
| 107 virtual ui::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } | 107 virtual ui::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } |
| 108 virtual void HighlightChangedTo(int index) {} | 108 virtual void HighlightChangedTo(int index) {} |
| 109 virtual void ActivatedAt(int index); | 109 virtual void ActivatedAt(int index); |
| 110 virtual void MenuWillShow() {} | 110 virtual void MenuWillShow() {} |
| 111 virtual void SetMenuModelDelegate(ui::MenuModelDelegate* delegate) {} |
| 111 | 112 |
| 112 void SetFirstLevelMenuWidth(int width); | 113 void SetFirstLevelMenuWidth(int width); |
| 113 | 114 |
| 114 // Cancels the active menu. | 115 // Cancels the active menu. |
| 115 void CancelMenu(); | 116 void CancelMenu(); |
| 116 | 117 |
| 117 // The following methods returns pointer to a shared instance of the SkBitmap. | 118 // The following methods returns pointer to a shared instance of the SkBitmap. |
| 118 // This shared bitmap is owned by the resource bundle and should not be freed. | 119 // This shared bitmap is owned by the resource bundle and should not be freed. |
| 119 | 120 |
| 120 // Returns the Icon for a network strength for a WifiNetwork |wifi|. | 121 // Returns the Icon for a network strength for a WifiNetwork |wifi|. |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 252 |
| 252 // If true, call into the settings UI for network configuration dialogs. | 253 // If true, call into the settings UI for network configuration dialogs. |
| 253 bool use_settings_ui_; | 254 bool use_settings_ui_; |
| 254 | 255 |
| 255 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); | 256 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 } // namespace chromeos | 259 } // namespace chromeos |
| 259 | 260 |
| 260 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ | 261 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ |
| OLD | NEW |