Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: chrome/browser/chromeos/status/network_menu_button.h

Issue 2817036: Push change for stevenjb:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 FLAG_CELLULAR = 1 << 8, 115 FLAG_CELLULAR = 1 << 8,
116 FLAG_OPTIONS = 1 << 9, 116 FLAG_OPTIONS = 1 << 9,
117 FLAG_OTHER_NETWORK = 1 << 10, 117 FLAG_OTHER_NETWORK = 1 << 10,
118 }; 118 };
119 119
120 struct MenuItem { 120 struct MenuItem {
121 MenuItem() 121 MenuItem()
122 : type(menus::MenuModel::TYPE_SEPARATOR), 122 : type(menus::MenuModel::TYPE_SEPARATOR),
123 flags(0) {} 123 flags(0) {}
124 MenuItem(menus::MenuModel::ItemType type, string16 label, SkBitmap icon, 124 MenuItem(menus::MenuModel::ItemType type, string16 label, SkBitmap icon,
125 WifiNetwork wifi_network, CellularNetwork cellular_network, 125 const std::string& wireless_path, int flags)
126 int flags)
127 : type(type), 126 : type(type),
128 label(label), 127 label(label),
129 icon(icon), 128 icon(icon),
130 wifi_network(wifi_network), 129 wireless_path(wireless_path),
131 cellular_network(cellular_network),
132 flags(flags) {} 130 flags(flags) {}
133 131
134 menus::MenuModel::ItemType type; 132 menus::MenuModel::ItemType type;
135 string16 label; 133 string16 label;
136 SkBitmap icon; 134 SkBitmap icon;
137 WifiNetwork wifi_network; 135 std::string wireless_path;
138 CellularNetwork cellular_network;
139 int flags; 136 int flags;
140 }; 137 };
141 typedef std::vector<MenuItem> MenuItemVector; 138 typedef std::vector<MenuItem> MenuItemVector;
142 139
143 // views::ViewMenuDelegate implementation. 140 // views::ViewMenuDelegate implementation.
144 virtual void RunMenu(views::View* source, const gfx::Point& pt); 141 virtual void RunMenu(views::View* source, const gfx::Point& pt);
145 142
146 // Called by RunMenu to initialize our list of menu items. 143 // Called by RunMenu to initialize our list of menu items.
147 void InitMenuItems(); 144 void InitMenuItems();
148 145
(...skipping 20 matching lines...) Expand all
169 166
170 // The duration of the icon throbbing in milliseconds. 167 // The duration of the icon throbbing in milliseconds.
171 static const int kThrobDuration; 168 static const int kThrobDuration;
172 169
173 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); 170 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton);
174 }; 171 };
175 172
176 } // namespace chromeos 173 } // namespace chromeos
177 174
178 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ 175 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/status/network_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698