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

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

Issue 7541002: Make NetworkMenuModel a ui::MenuModel again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better fix for NOTREACHED(). Created 9 years, 4 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) 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 13 matching lines...) Expand all
24 24
25 class SkBitmap; 25 class SkBitmap;
26 26
27 namespace gfx { 27 namespace gfx {
28 class Canvas; 28 class Canvas;
29 } 29 }
30 30
31 namespace views { 31 namespace views {
32 class MenuItemView; 32 class MenuItemView;
33 class MenuButton; 33 class MenuButton;
34 class MenuModelAdapter;
34 } 35 }
35 36
36 namespace chromeos { 37 namespace chromeos {
37 38
38 class NetworkMenuModel; 39 class NetworkMenuModel;
39 40
40 // Menu for network menu button in the status area/welcome screen. 41 // Menu for network menu button in the status area/welcome screen.
41 // This class will populating the menu with the list of networks. 42 // This class will populating the menu with the list of networks.
42 // It will also handle connecting to another wifi/cellular network. 43 // It will also handle connecting to another wifi/cellular network.
43 // 44 //
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Weak ptr to delegate. 107 // Weak ptr to delegate.
107 Delegate* delegate_; 108 Delegate* delegate_;
108 109
109 // True if the browser is visible (i.e. not login/OOBE). 110 // True if the browser is visible (i.e. not login/OOBE).
110 bool is_browser_mode_; 111 bool is_browser_mode_;
111 112
112 // Set to true if we are currently refreshing the menu. 113 // Set to true if we are currently refreshing the menu.
113 bool refreshing_menu_; 114 bool refreshing_menu_;
114 115
115 // The network menu. 116 // The network menu.
117 scoped_ptr<NetworkMenuModel> main_menu_model_;
118 scoped_ptr<views::MenuModelAdapter> menu_model_adapter_;
116 scoped_ptr<views::MenuItemView> menu_item_view_; 119 scoped_ptr<views::MenuItemView> menu_item_view_;
117 scoped_ptr<NetworkMenuModel> main_menu_model_;
118 120
119 // Holds minimum width of the menu. 121 // Holds minimum width of the menu.
120 int min_width_; 122 int min_width_;
121 123
122 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); 124 DISALLOW_COPY_AND_ASSIGN(NetworkMenu);
123 }; 125 };
124 126
125 } // namespace chromeos 127 } // namespace chromeos
126 128
127 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ 129 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/status/network_menu.cc » ('j') | views/controls/menu/menu_item_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698