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

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

Issue 293613003: ChromeOS login webui refactoring: split user selection/gaia login screens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 } 815 }
816 816
817 void SigninScreenHandler::ClearUserPodPassword() { 817 void SigninScreenHandler::ClearUserPodPassword() {
818 core_oobe_actor_->ClearUserPodPassword(); 818 core_oobe_actor_->ClearUserPodPassword();
819 } 819 }
820 820
821 void SigninScreenHandler::RefocusCurrentPod() { 821 void SigninScreenHandler::RefocusCurrentPod() {
822 core_oobe_actor_->RefocusCurrentPod(); 822 core_oobe_actor_->RefocusCurrentPod();
823 } 823 }
824 824
825 void SigninScreenHandler::OnLoginSuccess(const std::string& username) {
826 core_oobe_actor_->OnLoginSuccess(username);
827 }
828
829 void SigninScreenHandler::OnUserRemoved(const std::string& username) { 825 void SigninScreenHandler::OnUserRemoved(const std::string& username) {
830 CallJS("login.AccountPickerScreen.removeUser", username); 826 CallJS("login.AccountPickerScreen.removeUser", username);
831 if (delegate_->GetUsers().empty()) 827 if (delegate_->GetUsers().empty())
832 OnShowAddUser(""); 828 OnShowAddUser("");
833 } 829 }
834 830
835 void SigninScreenHandler::OnUserImageChanged(const User& user) { 831 void SigninScreenHandler::OnUserImageChanged(const User& user) {
836 if (page_is_ready()) 832 if (page_is_ready())
837 CallJS("login.AccountPickerScreen.updateUserImage", user.email()); 833 CallJS("login.AccountPickerScreen.updateUserImage", user.email());
838 } 834 }
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
1785 DCHECK(gaia_screen_handler_); 1781 DCHECK(gaia_screen_handler_);
1786 return gaia_screen_handler_->frame_state(); 1782 return gaia_screen_handler_->frame_state();
1787 } 1783 }
1788 1784
1789 net::Error SigninScreenHandler::FrameError() const { 1785 net::Error SigninScreenHandler::FrameError() const {
1790 DCHECK(gaia_screen_handler_); 1786 DCHECK(gaia_screen_handler_);
1791 return gaia_screen_handler_->frame_error(); 1787 return gaia_screen_handler_->frame_error();
1792 } 1788 }
1793 1789
1794 } // namespace chromeos 1790 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698