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

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_gaia_signin.js

Issue 1133733003: Unified icon-buttons used in the new GAIA flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes. Created 5 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
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 /** 5 /**
6 * @fileoverview Oobe signin screen implementation. 6 * @fileoverview Oobe signin screen implementation.
7 */ 7 */
8 8
9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() {
10 // Gaia loading time after which error message must be displayed and 10 // Gaia loading time after which error message must be displayed and
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 this.gaiaAuthHost_.addEventListener('authCompleted', 172 this.gaiaAuthHost_.addEventListener('authCompleted',
173 this.onAuthCompletedMessage_.bind(this)); 173 this.onAuthCompletedMessage_.bind(this));
174 this.gaiaAuthHost_.addEventListener('loadAbort', 174 this.gaiaAuthHost_.addEventListener('loadAbort',
175 this.onLoadAbortMessage_.bind(this)); 175 this.onLoadAbortMessage_.bind(this));
176 176
177 $('enterprise-info-hint-link').addEventListener('click', function(e) { 177 $('enterprise-info-hint-link').addEventListener('click', function(e) {
178 chrome.send('launchHelpApp', [HELP_TOPIC_ENTERPRISE_REPORTING]); 178 chrome.send('launchHelpApp', [HELP_TOPIC_ENTERPRISE_REPORTING]);
179 e.preventDefault(); 179 e.preventDefault();
180 }); 180 });
181 181
182 $('back-button-item').addEventListener('mousedown', function(e) {
183 e.preventDefault();
184 });
185
186 $('back-button-item').addEventListener('click', function(e) { 182 $('back-button-item').addEventListener('click', function(e) {
187 $('back-button-item').hidden = true; 183 $('back-button-item').hidden = true;
188 $('signin-frame').back(); 184 $('signin-frame').back();
189 e.preventDefault(); 185 e.preventDefault();
190 }); 186 });
191 187
192 $('close-button-item').addEventListener('mousedown', function(e) {
193 e.preventDefault();
194 });
195
196 $('close-button-item').addEventListener('click', function(e) { 188 $('close-button-item').addEventListener('click', function(e) {
197 this.cancel(); 189 this.cancel();
198 e.preventDefault(); 190 e.preventDefault();
199 }.bind(this)); 191 }.bind(this));
200 192
201 $('gaia-whitelist-error').addEventListener('buttonclick', function() { 193 $('gaia-whitelist-error').addEventListener('buttonclick', function() {
202 this.showWhitelistCheckFailedError(false); 194 this.showWhitelistCheckFailedError(false);
203 }.bind(this)); 195 }.bind(this));
204 196
205 $('gaia-whitelist-error').addEventListener('linkclick', function() { 197 $('gaia-whitelist-error').addEventListener('linkclick', function() {
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 */ 959 */
968 updateDeviceId: function(data) { 960 updateDeviceId: function(data) {
969 if (!this.isNewGaiaFlow) 961 if (!this.isNewGaiaFlow)
970 return; 962 return;
971 963
972 if (data && data.deviceId) 964 if (data && data.deviceId)
973 this.gaiaAuthHost_.updateDeviceId(data.deviceId); 965 this.gaiaAuthHost_.updateDeviceId(data.deviceId);
974 }, 966 },
975 }; 967 };
976 }); 968 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698