| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 int flags; | 130 int flags; |
| 131 }; | 131 }; |
| 132 typedef std::vector<MenuItem> MenuItemVector; | 132 typedef std::vector<MenuItem> MenuItemVector; |
| 133 | 133 |
| 134 // views::ViewMenuDelegate implementation. | 134 // views::ViewMenuDelegate implementation. |
| 135 virtual void RunMenu(views::View* source, const gfx::Point& pt); | 135 virtual void RunMenu(views::View* source, const gfx::Point& pt); |
| 136 | 136 |
| 137 // Called by RunMenu to initialize our list of menu items. | 137 // Called by RunMenu to initialize our list of menu items. |
| 138 void InitMenuItems(); | 138 void InitMenuItems(); |
| 139 | 139 |
| 140 // Shows network details in DOM UI options window. |
| 141 void ShowTabbedNetworkSettings(const Network& network); |
| 142 |
| 140 // Set to true if we are currently refreshing the menu. | 143 // Set to true if we are currently refreshing the menu. |
| 141 bool refreshing_menu_; | 144 bool refreshing_menu_; |
| 142 | 145 |
| 143 // The number of wifi strength images. | 146 // The number of wifi strength images. |
| 144 static const int kNumWifiImages; | 147 static const int kNumWifiImages; |
| 145 | 148 |
| 146 // Our menu items. | 149 // Our menu items. |
| 147 MenuItemVector menu_items_; | 150 MenuItemVector menu_items_; |
| 148 | 151 |
| 149 // The network menu. | 152 // The network menu. |
| 150 views::Menu2 network_menu_; | 153 views::Menu2 network_menu_; |
| 151 | 154 |
| 152 // Holds minimum width or -1 if it wasn't set up. | 155 // Holds minimum width or -1 if it wasn't set up. |
| 153 int min_width_; | 156 int min_width_; |
| 154 | 157 |
| 155 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); | 158 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); |
| 156 }; | 159 }; |
| 157 | 160 |
| 158 } // namespace chromeos | 161 } // namespace chromeos |
| 159 | 162 |
| 160 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ | 163 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ |
| OLD | NEW |