Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/network_screen_handler.cc

Issue 9664072: Removing WmIpc and related files from ChromeOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Copyright Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/window.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/chromeos/cros/cros_library.h" 13 #include "chrome/browser/chromeos/cros/cros_library.h"
14 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 14 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
15 #include "chrome/browser/chromeos/input_method/input_method_util.h" 15 #include "chrome/browser/chromeos/input_method/input_method_util.h"
16 #include "chrome/browser/chromeos/login/language_switch_menu.h" 16 #include "chrome/browser/chromeos/login/language_switch_menu.h"
17 #include "chrome/browser/chromeos/status/input_method_menu.h" 17 #include "chrome/browser/chromeos/status/input_method_menu.h"
18 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 18 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
19 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler .h" 19 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler .h"
20 #include "content/public/browser/web_ui.h" 20 #include "content/public/browser/web_ui.h"
21 #include "grit/chromium_strings.h" 21 #include "grit/chromium_strings.h"
22 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
23 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
24 #include "ui/gfx/rect.h" 24 #include "ui/gfx/rect.h"
25 #include "ui/views/layout/fill_layout.h" 25 #include "ui/views/layout/fill_layout.h"
26 #include "ui/views/widget/widget.h" 26 #include "ui/views/widget/widget.h"
27 27
28 #if defined(TOOLKIT_USES_GTK)
29 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h"
30 #endif
31
32 namespace { 28 namespace {
33 29
34 // Network screen id. 30 // Network screen id.
35 const char kNetworkScreen[] = "connect"; 31 const char kNetworkScreen[] = "connect";
36 32
37 // JS API callbacks names. 33 // JS API callbacks names.
38 const char kJsApiNetworkOnExit[] = "networkOnExit"; 34 const char kJsApiNetworkOnExit[] = "networkOnExit";
39 const char kJsApiNetworkOnLanguageChanged[] = "networkOnLanguageChanged"; 35 const char kJsApiNetworkOnLanguageChanged[] = "networkOnLanguageChanged";
40 const char kJsApiNetworkOnInputMethodChanged[] = "networkOnInputMethodChanged"; 36 const char kJsApiNetworkOnInputMethodChanged[] = "networkOnInputMethodChanged";
41 37
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 input_method->SetString( 225 input_method->SetString(
230 "title", InputMethodMenu::GetTextForMenu(input_methods->at(i))); 226 "title", InputMethodMenu::GetTextForMenu(input_methods->at(i)));
231 input_method->SetBoolean("selected", 227 input_method->SetBoolean("selected",
232 input_methods->at(i).id() == current_input_method_id); 228 input_methods->at(i).id() == current_input_method_id);
233 input_methods_list->Append(input_method); 229 input_methods_list->Append(input_method);
234 } 230 }
235 return input_methods_list; 231 return input_methods_list;
236 } 232 }
237 233
238 } // namespace chromeos 234 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/window.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698