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

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

Issue 1115993002: ChromeOS Gaia: SAML password confirmation dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 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 /** 5 /**
6 * @fileoverview Common OOBE controller methods. 6 * @fileoverview Common OOBE controller methods.
7 */ 7 */
8 8
9 <include src="test_util.js"> 9 <include src="test_util.js">
10 <include src="../../../../../ui/login/screen.js"> 10 <include src="../../../../../ui/login/screen.js">
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 353
354 /** 354 /**
355 * Sets the current size of the client area (display size). 355 * Sets the current size of the client area (display size).
356 * @param {number} width client area width 356 * @param {number} width client area width
357 * @param {number} height client area height 357 * @param {number} height client area height
358 */ 358 */
359 Oobe.setClientAreaSize = function(width, height) { 359 Oobe.setClientAreaSize = function(width, height) {
360 Oobe.getInstance().setClientAreaSize(width, height); 360 Oobe.getInstance().setClientAreaSize(width, height);
361 }; 361 };
362 362
363 /**
364 * Checks whether the New Gaia flow is active.
365 */
366 Oobe.isNewGaiaFlow = function() {
367 return document.querySelector('.new-gaia-flow') != undefined;
368 };
369
363 // Export 370 // Export
364 return { 371 return {
365 Oobe: Oobe 372 Oobe: Oobe
366 }; 373 };
367 }); 374 });
368 375
369 var Oobe = cr.ui.Oobe; 376 var Oobe = cr.ui.Oobe;
370 377
371 // Allow selection events on components with editable text (password field) 378 // Allow selection events on components with editable text (password field)
372 // bug (http://code.google.com/p/chromium/issues/detail?id=125863) 379 // bug (http://code.google.com/p/chromium/issues/detail?id=125863)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 document.addEventListener('DOMContentLoaded', function() { 412 document.addEventListener('DOMContentLoaded', function() {
406 if (!window['WAIT_FOR_POLYMER']) { 413 if (!window['WAIT_FOR_POLYMER']) {
407 initializeOobe(); 414 initializeOobe();
408 return; 415 return;
409 } 416 }
410 window.addEventListener('polymer-ready', function() { 417 window.addEventListener('polymer-ready', function() {
411 initializeOobe(); 418 initializeOobe();
412 }); 419 });
413 }); 420 });
414 })(); 421 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698