| 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_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 const std::string& passphrase, | 86 const std::string& passphrase, |
| 87 const std::string& ssid, | 87 const std::string& ssid, |
| 88 int remember) const; | 88 int remember) const; |
| 89 | 89 |
| 90 // menus::MenuModel implementation. | 90 // menus::MenuModel implementation. |
| 91 virtual bool HasIcons() const { return true; } | 91 virtual bool HasIcons() const { return true; } |
| 92 virtual int GetItemCount() const; | 92 virtual int GetItemCount() const; |
| 93 virtual menus::MenuModel::ItemType GetTypeAt(int index) const; | 93 virtual menus::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 IsLabelDynamicAt(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 menus::Accelerator* accelerator) const { return false; } | 99 menus::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) const; |
| 103 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { | 103 virtual menus::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; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 // If true, call into the settings UI for network configuration dialogs. | 223 // If true, call into the settings UI for network configuration dialogs. |
| 224 bool use_settings_ui_; | 224 bool use_settings_ui_; |
| 225 | 225 |
| 226 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); | 226 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 } // namespace chromeos | 229 } // namespace chromeos |
| 230 | 230 |
| 231 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ | 231 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ |
| OLD | NEW |