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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 NetworkMenu(Delegate* delegate, bool is_browser_mode); | 86 NetworkMenu(Delegate* delegate, bool is_browser_mode); |
87 virtual ~NetworkMenu(); | 87 virtual ~NetworkMenu(); |
88 | 88 |
89 // Access to menu definition. | 89 // Access to menu definition. |
90 ui::MenuModel* GetMenuModel(); | 90 ui::MenuModel* GetMenuModel(); |
91 | 91 |
92 // Cancels the active menu. | 92 // Cancels the active menu. |
93 void CancelMenu(); | 93 void CancelMenu(); |
94 | 94 |
95 // Update the menu (e.g. when the network list or status has changed). | 95 // Update the menu (e.g. when the network list or status has changed). |
96 void UpdateMenu(); | 96 virtual void UpdateMenu(); |
97 | 97 |
98 // Run the menu. | 98 // Run the menu. |
99 void RunMenu(views::View* source); | 99 void RunMenu(views::View* source); |
100 | 100 |
101 // Shows network details in Web UI options window. | 101 // Shows network details in Web UI options window. |
102 void ShowTabbedNetworkSettings(const Network* network) const; | 102 void ShowTabbedNetworkSettings(const Network* network) const; |
103 | 103 |
104 // Getters. | 104 // Getters. |
105 Delegate* delegate() const { return delegate_; } | 105 Delegate* delegate() const { return delegate_; } |
106 bool is_browser_mode() const { return is_browser_mode_; } | 106 bool is_browser_mode() const { return is_browser_mode_; } |
(...skipping 20 matching lines...) Expand all Loading... |
127 | 127 |
128 // Holds minimum width of the menu. | 128 // Holds minimum width of the menu. |
129 int min_width_; | 129 int min_width_; |
130 | 130 |
131 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); | 131 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); |
132 }; | 132 }; |
133 | 133 |
134 } // namespace chromeos | 134 } // namespace chromeos |
135 | 135 |
136 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ | 136 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ |
OLD | NEW |