| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow | 15 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow |
| 16 | 16 |
| 17 class Browser; | |
| 18 | |
| 19 namespace ui { | 17 namespace ui { |
| 20 class MenuModel; | 18 class MenuModel; |
| 21 } | 19 } |
| 22 | 20 |
| 23 namespace views { | |
| 24 class MenuItemView; | |
| 25 class MenuButton; | |
| 26 class MenuRunner; | |
| 27 } | |
| 28 | |
| 29 namespace chromeos { | 21 namespace chromeos { |
| 30 | 22 |
| 31 class NetworkMenuModel; | 23 class NetworkMenuModel; |
| 32 | 24 |
| 33 // This class builds and manages a ui::MenuModel used to build network | 25 // This class builds and manages a ui::MenuModel used to build network |
| 34 // menus. It does not represent an actual menu widget. The menu is populated | 26 // menus. It does not represent an actual menu widget. The menu is populated |
| 35 // with the list of wifi and mobile networks, and handles connecting to | 27 // with the list of wifi and mobile networks, and handles connecting to |
| 36 // existing networks or spawning UI to configure a new network. | 28 // existing networks or spawning UI to configure a new network. |
| 37 // | 29 // |
| 38 // This class is now only used to build the dropdown menu in the oobe and | 30 // This class is now only used to build the dropdown menu in the oobe and |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // without worrying that they will actually try to happen after the lifetime | 91 // without worrying that they will actually try to happen after the lifetime |
| 100 // of this object. | 92 // of this object. |
| 101 base::WeakPtrFactory<NetworkMenu> weak_pointer_factory_; | 93 base::WeakPtrFactory<NetworkMenu> weak_pointer_factory_; |
| 102 | 94 |
| 103 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); | 95 DISALLOW_COPY_AND_ASSIGN(NetworkMenu); |
| 104 }; | 96 }; |
| 105 | 97 |
| 106 } // namespace chromeos | 98 } // namespace chromeos |
| 107 | 99 |
| 108 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ | 100 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_H_ |
| OLD | NEW |