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 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/browser/tab_contents/tab_contents.h" | 21 #include "content/browser/tab_contents/tab_contents.h" |
22 #include "content/browser/webui/web_ui.h" | 22 #include "content/browser/webui/web_ui.h" |
23 #include "grit/chromium_strings.h" | 23 #include "grit/chromium_strings.h" |
24 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
27 #include "views/layout/fill_layout.h" | 27 #include "views/layout/fill_layout.h" |
28 #include "views/widget/widget.h" | 28 #include "views/widget/widget.h" |
29 | 29 |
30 #if defined(TOOLKIT_USES_GTK) | 30 #if defined(TOOLKIT_USES_GTK) |
31 #include "chrome/browser/chromeos/wm_ipc.h" | 31 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" |
32 #endif | 32 #endif |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 // Network screen id. | 36 // Network screen id. |
37 const char kNetworkScreen[] = "connect"; | 37 const char kNetworkScreen[] = "connect"; |
38 | 38 |
39 // JS API callbacks names. | 39 // JS API callbacks names. |
40 const char kJsApiNetworkOnExit[] = "networkOnExit"; | 40 const char kJsApiNetworkOnExit[] = "networkOnExit"; |
41 const char kJsApiNetworkOnLanguageChanged[] = "networkOnLanguageChanged"; | 41 const char kJsApiNetworkOnLanguageChanged[] = "networkOnLanguageChanged"; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 input_method->SetString( | 228 input_method->SetString( |
229 "title", InputMethodMenu::GetTextForMenu(input_methods->at(i))); | 229 "title", InputMethodMenu::GetTextForMenu(input_methods->at(i))); |
230 input_method->SetBoolean("selected", | 230 input_method->SetBoolean("selected", |
231 input_methods->at(i).id() == current_input_method_id); | 231 input_methods->at(i).id() == current_input_method_id); |
232 input_methods_list->Append(input_method); | 232 input_methods_list->Append(input_method); |
233 } | 233 } |
234 return input_methods_list; | 234 return input_methods_list; |
235 } | 235 } |
236 | 236 |
237 } // namespace chromeos | 237 } // namespace chromeos |
OLD | NEW |