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

Side by Side Diff: ui/login/account_picker/user_pod_row.js

Issue 2822663003: Make Submit button on user pods unfocusable (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 /** 5 /**
6 * @fileoverview User pod row implementation. 6 * @fileoverview User pod row implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 * @const 82 * @const
83 */ 83 */
84 var HELP_TOPIC_PUBLIC_SESSION = 3041033; 84 var HELP_TOPIC_PUBLIC_SESSION = 3041033;
85 85
86 /** 86 /**
87 * Tab order for user pods. Update these when adding new controls. 87 * Tab order for user pods. Update these when adding new controls.
88 * @enum {number} 88 * @enum {number}
89 * @const 89 * @const
90 */ 90 */
91 var UserPodTabOrder = { 91 var UserPodTabOrder = {
92 POD_INPUT: 1, // Password input field, Action box menu button, submit 92 POD_INPUT: 1, // Password input field, Action box menu button and
93 // button next to password input field and the pod 93 // the pod itself.
94 // itself.
95 PIN_KEYBOARD: 2, // Pin keyboard below the password input field. 94 PIN_KEYBOARD: 2, // Pin keyboard below the password input field.
96 POD_CUSTOM_ICON: 3, // Pod custom icon next to password input field. 95 POD_CUSTOM_ICON: 3, // Pod custom icon next to password input field.
97 HEADER_BAR: 4, // Buttons on the header bar (Shutdown, Add User). 96 HEADER_BAR: 4, // Buttons on the header bar (Shutdown, Add User).
98 POD_MENU_ITEM: 5 // User pad menu items (User info, Remove user). 97 POD_MENU_ITEM: 5 // User pad menu items (User info, Remove user).
99 }; 98 };
100 99
101 /** 100 /**
102 * Supported authentication types. Keep in sync with the enum in 101 * Supported authentication types. Keep in sync with the enum in
103 * chrome/browser/signin/screenlock_bridge.h 102 * chrome/browser/signin/screenlock_bridge.h
104 * @enum {number} 103 * @enum {number}
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 this.passwordElement.addEventListener('keypress', 811 this.passwordElement.addEventListener('keypress',
813 this.handlePasswordKeyPress_.bind(this)); 812 this.handlePasswordKeyPress_.bind(this));
814 this.passwordElement.addEventListener('input', 813 this.passwordElement.addEventListener('input',
815 this.handleInputChanged_.bind(this)); 814 this.handleInputChanged_.bind(this));
816 this.passwordElement.addEventListener('mouseup', 815 this.passwordElement.addEventListener('mouseup',
817 this.handleInputMouseUp_.bind(this)); 816 this.handleInputMouseUp_.bind(this));
818 817
819 if (this.submitButton) { 818 if (this.submitButton) {
820 this.submitButton.addEventListener('click', 819 this.submitButton.addEventListener('click',
821 this.handleSubmitButtonClick_.bind(this)); 820 this.handleSubmitButtonClick_.bind(this));
822 this.submitButton.tabIndex = UserPodTabOrder.POD_INPUT;
823 } 821 }
824 822
825 this.imageElement.addEventListener('load', 823 this.imageElement.addEventListener('load',
826 this.parentNode.handlePodImageLoad.bind(this.parentNode, this)); 824 this.parentNode.handlePodImageLoad.bind(this.parentNode, this));
827 825
828 var initialAuthType = this.user.initialAuthType || 826 var initialAuthType = this.user.initialAuthType ||
829 AUTH_TYPE.OFFLINE_PASSWORD; 827 AUTH_TYPE.OFFLINE_PASSWORD;
830 this.setAuthType(initialAuthType, null); 828 this.setAuthType(initialAuthType, null);
831 829
832 if (this.user.isActiveDirectory) 830 if (this.user.isActiveDirectory)
(...skipping 3144 matching lines...) Expand 10 before | Expand all | Expand 10 after
3977 if (pod && pod.multiProfilesPolicyApplied) { 3975 if (pod && pod.multiProfilesPolicyApplied) {
3978 pod.userTypeBubbleElement.classList.remove('bubble-shown'); 3976 pod.userTypeBubbleElement.classList.remove('bubble-shown');
3979 } 3977 }
3980 } 3978 }
3981 }; 3979 };
3982 3980
3983 return { 3981 return {
3984 PodRow: PodRow 3982 PodRow: PodRow
3985 }; 3983 };
3986 }); 3984 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698