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

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

Issue 11421111: Fixed button focusing in OOBE screens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed old code. Created 8 years 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 /** 5 /**
6 * @fileoverview Oobe eula screen implementation. 6 * @fileoverview Oobe eula screen implementation.
7 */ 7 */
8 8
9 cr.define('oobe', function() { 9 cr.define('oobe', function() {
10 /** 10 /**
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 acceptButton.addEventListener('click', function(e) { 63 acceptButton.addEventListener('click', function(e) {
64 chrome.send('eulaOnExit', [true, $('usage-stats').checked]); 64 chrome.send('eulaOnExit', [true, $('usage-stats').checked]);
65 e.stopPropagation(); 65 e.stopPropagation();
66 }); 66 });
67 buttons.push(acceptButton); 67 buttons.push(acceptButton);
68 68
69 return buttons; 69 return buttons;
70 }, 70 },
71 71
72 /** 72 /**
73 * Returns a control which should receive an initial focus.
74 */
75 get defaultControl() {
76 return $('accept-button');
77 },
78
79 /**
73 * Updates localized content of the screen that is not updated via template. 80 * Updates localized content of the screen that is not updated via template.
74 */ 81 */
75 updateLocalizedContent: function() { 82 updateLocalizedContent: function() {
76 if ($('cros-eula-frame').src != '') 83 if ($('cros-eula-frame').src != '')
77 $('cros-eula-frame').src = $('cros-eula-frame').src; 84 $('cros-eula-frame').src = $('cros-eula-frame').src;
78 if ($('oem-eula-frame').src != '') 85 if ($('oem-eula-frame').src != '')
79 $('oem-eula-frame').src = $('oem-eula-frame').src; 86 $('oem-eula-frame').src = $('oem-eula-frame').src;
80 } 87 }
81 }; 88 };
82 89
83 return { 90 return {
84 EulaScreen: EulaScreen 91 EulaScreen: EulaScreen
85 }; 92 };
86 }); 93 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe.js ('k') | chrome/browser/resources/chromeos/login/oobe_screen_network.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698