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

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

Issue 11264017: On active, dismiss the retail mode screensaver immidiately. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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) 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/signin_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/signin_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/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 input_method::InputMethodManager::GetInstance()->GetXKeyboard()-> 221 input_method::InputMethodManager::GetInstance()->GetXKeyboard()->
222 SetCapsLockEnabled(false); 222 SetCapsLockEnabled(false);
223 223
224 DictionaryValue params; 224 DictionaryValue params;
225 params.SetBoolean("disableAddUser", 225 params.SetBoolean("disableAddUser",
226 DoRestrictedUsersMatchExistingOnScreen()); 226 DoRestrictedUsersMatchExistingOnScreen());
227 ShowScreen(kAccountPickerScreen, &params); 227 ShowScreen(kAccountPickerScreen, &params);
228 } 228 }
229 } 229 }
230 230
231 void SigninScreenHandler::ShowRetailModeLoginSpinner() {
232 web_ui()->CallJavascriptFunction("showLoginSpinner");
233 }
234
231 void SigninScreenHandler::SetDelegate(SigninScreenHandlerDelegate* delegate) { 235 void SigninScreenHandler::SetDelegate(SigninScreenHandlerDelegate* delegate) {
232 delegate_ = delegate; 236 delegate_ = delegate;
233 if (delegate_) 237 if (delegate_)
234 delegate_->SetWebUIHandler(this); 238 delegate_->SetWebUIHandler(this);
235 } 239 }
236 240
237 void SigninScreenHandler::SetNativeWindowDelegate( 241 void SigninScreenHandler::SetNativeWindowDelegate(
238 NativeWindowDelegate* native_window_delegate) { 242 NativeWindowDelegate* native_window_delegate) {
239 native_window_delegate_ = native_window_delegate; 243 native_window_delegate_ = native_window_delegate;
240 } 244 }
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 ConnectionType last_network_type) { 995 ConnectionType last_network_type) {
992 base::FundamentalValue state_value(state); 996 base::FundamentalValue state_value(state);
993 base::StringValue network_value(network_name); 997 base::StringValue network_value(network_name);
994 base::StringValue reason_value(reason); 998 base::StringValue reason_value(reason);
995 base::FundamentalValue last_network_value(last_network_type); 999 base::FundamentalValue last_network_value(last_network_type);
996 web_ui()->CallJavascriptFunction(callback, 1000 web_ui()->CallJavascriptFunction(callback,
997 state_value, network_value, reason_value, last_network_value); 1001 state_value, network_value, reason_value, last_network_value);
998 } 1002 }
999 1003
1000 } // namespace chromeos 1004 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698