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

Side by Side Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc

Issue 471973002: Single pod autofocus disabled for touch view mode. Delegate class created for ash interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dummy handler added. Created 6 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/signin/user_manager_screen_handler.h" 5 #include "chrome/browser/ui/webui/signin/user_manager_screen_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/value_conversions.h" 10 #include "base/value_conversions.h"
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 base::Bind(&UserManagerScreenHandler::HandleAttemptUnlock, 488 base::Bind(&UserManagerScreenHandler::HandleAttemptUnlock,
489 base::Unretained(this))); 489 base::Unretained(this)));
490 490
491 const content::WebUI::MessageCallback& kDoNothingCallback = 491 const content::WebUI::MessageCallback& kDoNothingCallback =
492 base::Bind(&HandleAndDoNothing); 492 base::Bind(&HandleAndDoNothing);
493 493
494 // Unused callbacks from screen_account_picker.js 494 // Unused callbacks from screen_account_picker.js
495 web_ui()->RegisterMessageCallback("accountPickerReady", kDoNothingCallback); 495 web_ui()->RegisterMessageCallback("accountPickerReady", kDoNothingCallback);
496 web_ui()->RegisterMessageCallback("loginUIStateChanged", kDoNothingCallback); 496 web_ui()->RegisterMessageCallback("loginUIStateChanged", kDoNothingCallback);
497 web_ui()->RegisterMessageCallback("hideCaptivePortal", kDoNothingCallback); 497 web_ui()->RegisterMessageCallback("hideCaptivePortal", kDoNothingCallback);
498 web_ui()->RegisterMessageCallback("getTouchViewState", kDoNothingCallback);
498 // Unused callbacks from display_manager.js 499 // Unused callbacks from display_manager.js
499 web_ui()->RegisterMessageCallback("showAddUser", kDoNothingCallback); 500 web_ui()->RegisterMessageCallback("showAddUser", kDoNothingCallback);
500 web_ui()->RegisterMessageCallback("loadWallpaper", kDoNothingCallback); 501 web_ui()->RegisterMessageCallback("loadWallpaper", kDoNothingCallback);
501 web_ui()->RegisterMessageCallback("updateCurrentScreen", kDoNothingCallback); 502 web_ui()->RegisterMessageCallback("updateCurrentScreen", kDoNothingCallback);
502 web_ui()->RegisterMessageCallback("loginVisible", kDoNothingCallback); 503 web_ui()->RegisterMessageCallback("loginVisible", kDoNothingCallback);
503 // Unused callbacks from user_pod_row.js 504 // Unused callbacks from user_pod_row.js
504 web_ui()->RegisterMessageCallback("focusPod", kDoNothingCallback); 505 web_ui()->RegisterMessageCallback("focusPod", kDoNothingCallback);
505 } 506 }
506 507
507 void UserManagerScreenHandler::GetLocalizedValues( 508 void UserManagerScreenHandler::GetLocalizedValues(
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 } else { 672 } else {
672 web_ui()->CallJavascriptFunction( 673 web_ui()->CallJavascriptFunction(
673 "cr.ui.Oobe.showSignInError", 674 "cr.ui.Oobe.showSignInError",
674 base::FundamentalValue(0), 675 base::FundamentalValue(0),
675 base::StringValue( 676 base::StringValue(
676 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)), 677 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING)),
677 base::StringValue(""), 678 base::StringValue(""),
678 base::FundamentalValue(0)); 679 base::FundamentalValue(0));
679 } 680 }
680 } 681 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698