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

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

Issue 232333002: ozone: Rename XKeyboard to KeyboardController & use fake under ozone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/signin_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h" 49 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h"
50 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" 50 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
51 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 51 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
52 #include "chrome/common/chrome_switches.h" 52 #include "chrome/common/chrome_switches.h"
53 #include "chrome/common/pref_names.h" 53 #include "chrome/common/pref_names.h"
54 #include "chrome/common/url_constants.h" 54 #include "chrome/common/url_constants.h"
55 #include "chromeos/chromeos_switches.h" 55 #include "chromeos/chromeos_switches.h"
56 #include "chromeos/dbus/dbus_thread_manager.h" 56 #include "chromeos/dbus/dbus_thread_manager.h"
57 #include "chromeos/dbus/power_manager_client.h" 57 #include "chromeos/dbus/power_manager_client.h"
58 #include "chromeos/ime/input_method_manager.h" 58 #include "chromeos/ime/input_method_manager.h"
59 #include "chromeos/ime/xkeyboard.h" 59 #include "chromeos/ime/keyboard_controller.h"
60 #include "chromeos/network/network_state.h" 60 #include "chromeos/network/network_state.h"
61 #include "chromeos/network/network_state_handler.h" 61 #include "chromeos/network/network_state_handler.h"
62 #include "content/public/browser/browser_thread.h" 62 #include "content/public/browser/browser_thread.h"
63 #include "content/public/browser/render_frame_host.h" 63 #include "content/public/browser/render_frame_host.h"
64 #include "content/public/browser/web_contents.h" 64 #include "content/public/browser/web_contents.h"
65 #include "google_apis/gaia/gaia_auth_util.h" 65 #include "google_apis/gaia/gaia_auth_util.h"
66 #include "grit/chromium_strings.h" 66 #include "grit/chromium_strings.h"
67 #include "grit/generated_resources.h" 67 #include "grit/generated_resources.h"
68 #include "net/url_request/url_request_context_getter.h" 68 #include "net/url_request/url_request_context_getter.h"
69 #include "third_party/cros_system_api/dbus/service_constants.h" 69 #include "third_party/cros_system_api/dbus/service_constants.h"
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 493
494 if (oobe_ui_) { 494 if (oobe_ui_) {
495 // Shows new user sign-in for OOBE. 495 // Shows new user sign-in for OOBE.
496 OnShowAddUser(email_); 496 OnShowAddUser(email_);
497 } else { 497 } else {
498 // Populates account picker. Animation is turned off for now until we 498 // Populates account picker. Animation is turned off for now until we
499 // figure out how to make it fast enough. 499 // figure out how to make it fast enough.
500 SendUserList(false); 500 SendUserList(false);
501 501
502 // Reset Caps Lock state when login screen is shown. 502 // Reset Caps Lock state when login screen is shown.
503 input_method::InputMethodManager::Get()->GetXKeyboard()-> 503 input_method::InputMethodManager::Get()
504 SetCapsLockEnabled(false); 504 ->GetKeyboardController()
505 ->SetCapsLockEnabled(false);
505 506
506 base::DictionaryValue params; 507 base::DictionaryValue params;
507 params.SetBoolean("disableAddUser", AllWhitelistedUsersPresent()); 508 params.SetBoolean("disableAddUser", AllWhitelistedUsersPresent());
508 UpdateUIState(UI_STATE_ACCOUNT_PICKER, &params); 509 UpdateUIState(UI_STATE_ACCOUNT_PICKER, &params);
509 } 510 }
510 } 511 }
511 512
512 void SigninScreenHandler::UpdateUIState(UIState ui_state, 513 void SigninScreenHandler::UpdateUIState(UIState ui_state,
513 base::DictionaryValue* params) { 514 base::DictionaryValue* params) {
514 switch (ui_state) { 515 switch (ui_state) {
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 DCHECK(gaia_screen_handler_); 1771 DCHECK(gaia_screen_handler_);
1771 return gaia_screen_handler_->frame_state(); 1772 return gaia_screen_handler_->frame_state();
1772 } 1773 }
1773 1774
1774 net::Error SigninScreenHandler::FrameError() const { 1775 net::Error SigninScreenHandler::FrameError() const {
1775 DCHECK(gaia_screen_handler_); 1776 DCHECK(gaia_screen_handler_);
1776 return gaia_screen_handler_->frame_error(); 1777 return gaia_screen_handler_->frame_error();
1777 } 1778 }
1778 1779
1779 } // namespace chromeos 1780 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698