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 #include "chrome/browser/ui/webui/chromeos/login/network_dropdown.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/network_dropdown.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "ash/system/chromeos/network/network_icon.h" | 9 #include "ash/system/chromeos/network/network_icon.h" |
10 #include "ash/system/chromeos/network/network_icon_animation.h" | 10 #include "ash/system/chromeos/network/network_icon_animation.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/chromeos/login/login_display_host.h" | 13 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
14 #include "chrome/browser/chromeos/login/login_display_host_impl.h" | 14 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" |
15 #include "chromeos/network/network_state_handler.h" | 15 #include "chromeos/network/network_state_handler.h" |
16 #include "content/public/browser/web_ui.h" | 16 #include "content/public/browser/web_ui.h" |
17 #include "ui/base/models/menu_model.h" | 17 #include "ui/base/models/menu_model.h" |
18 #include "ui/base/webui/web_ui_util.h" | 18 #include "ui/base/webui/web_ui_util.h" |
19 #include "ui/gfx/font_list.h" | 19 #include "ui/gfx/font_list.h" |
20 #include "ui/gfx/image/image.h" | 20 #include "ui/gfx/image/image.h" |
21 #include "ui/gfx/image/image_skia.h" | 21 #include "ui/gfx/image/image_skia.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 web_ui_->CallJavascriptFunction("cr.ui.DropDown.updateNetworkTitle", | 201 web_ui_->CallJavascriptFunction("cr.ui.DropDown.updateNetworkTitle", |
202 title, icon); | 202 title, icon); |
203 } | 203 } |
204 | 204 |
205 void NetworkDropdown::RequestNetworkScan() { | 205 void NetworkDropdown::RequestNetworkScan() { |
206 NetworkHandler::Get()->network_state_handler()->RequestScan(); | 206 NetworkHandler::Get()->network_state_handler()->RequestScan(); |
207 Refresh(); | 207 Refresh(); |
208 } | 208 } |
209 | 209 |
210 } // namespace chromeos | 210 } // namespace chromeos |
OLD | NEW |