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/choose_mobile_network_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chromeos/network/network_event_log.h" | 21 #include "chromeos/network/network_event_log.h" |
22 #include "chromeos/network/network_state_handler.h" | 22 #include "chromeos/network/network_state_handler.h" |
23 #include "chromeos/network/network_state_handler_observer.h" | 23 #include "chromeos/network/network_state_handler_observer.h" |
24 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
25 #include "content/public/browser/web_ui.h" | 25 #include "content/public/browser/web_ui.h" |
26 #include "content/public/browser/web_ui_data_source.h" | 26 #include "content/public/browser/web_ui_data_source.h" |
27 #include "content/public/browser/web_ui_message_handler.h" | 27 #include "content/public/browser/web_ui_message_handler.h" |
28 #include "grit/browser_resources.h" | 28 #include "grit/browser_resources.h" |
29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
30 #include "third_party/cros_system_api/dbus/service_constants.h" | 30 #include "third_party/cros_system_api/dbus/service_constants.h" |
31 #include "ui/base/l10n/l10n_util.h" | |
32 #include "ui/base/resource/resource_bundle.h" | |
33 | 31 |
34 using content::WebContents; | 32 using content::WebContents; |
35 using content::WebUIMessageHandler; | 33 using content::WebUIMessageHandler; |
36 | 34 |
37 namespace chromeos { | 35 namespace chromeos { |
38 | 36 |
39 namespace { | 37 namespace { |
40 | 38 |
41 // JS API callbacks names. | 39 // JS API callbacks names. |
42 const char kJsApiCancel[] = "cancel"; | 40 const char kJsApiCancel[] = "cancel"; |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 : WebUIController(web_ui) { | 257 : WebUIController(web_ui) { |
260 ChooseMobileNetworkHandler* handler = new ChooseMobileNetworkHandler(); | 258 ChooseMobileNetworkHandler* handler = new ChooseMobileNetworkHandler(); |
261 web_ui->AddMessageHandler(handler); | 259 web_ui->AddMessageHandler(handler); |
262 // Set up the "chrome://choose-mobile-network" source. | 260 // Set up the "chrome://choose-mobile-network" source. |
263 Profile* profile = Profile::FromWebUI(web_ui); | 261 Profile* profile = Profile::FromWebUI(web_ui); |
264 content::WebUIDataSource::Add( | 262 content::WebUIDataSource::Add( |
265 profile, CreateChooseMobileNetworkUIHTMLSource()); | 263 profile, CreateChooseMobileNetworkUIHTMLSource()); |
266 } | 264 } |
267 | 265 |
268 } // namespace chromeos | 266 } // namespace chromeos |
OLD | NEW |