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

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

Issue 277083004: Added browser and OS credits link to EULA page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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 login.createScreen('EulaScreen', 'eula', function() { 9 login.createScreen('EulaScreen', 'eula', function() {
10 return { 10 return {
11 /** @override */ 11 /** @override */
12 decorate: function() { 12 decorate: function() {
13 $('eula-chrome-credits-link').hidden = true;
14 $('eula-chromeos-credits-link').hidden = true;
13 $('stats-help-link').addEventListener('click', function(event) { 15 $('stats-help-link').addEventListener('click', function(event) {
14 chrome.send('eulaOnLearnMore'); 16 chrome.send('eulaOnLearnMore');
15 }); 17 });
16 $('installation-settings-link').addEventListener( 18 $('installation-settings-link').addEventListener(
17 'click', function(event) { 19 'click', function(event) {
18 chrome.send('eulaOnInstallationSettingsPopupOpened'); 20 chrome.send('eulaOnInstallationSettingsPopupOpened');
19 $('popup-overlay').hidden = false; 21 $('popup-overlay').hidden = false;
20 $('installation-settings-ok-button').focus(); 22 $('installation-settings-ok-button').focus();
21 }); 23 });
22 $('installation-settings-ok-button').addEventListener( 24 $('installation-settings-ok-button').addEventListener(
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 }, 101 },
100 102
101 /** 103 /**
102 * Returns a control which should receive an initial focus. 104 * Returns a control which should receive an initial focus.
103 */ 105 */
104 get defaultControl() { 106 get defaultControl() {
105 return $('accept-button').disabled ? $('back-button') : 107 return $('accept-button').disabled ? $('back-button') :
106 $('accept-button'); 108 $('accept-button');
107 }, 109 },
108 110
111 enableKeyboardFlow: function() {
112 $('eula-chrome-credits-link').hidden = false;
113 $('eula-chromeos-credits-link').hidden = false;
114 $('eula-chrome-credits-link').addEventListener('click',
115 function(event) {
116 chrome.send('eulaOnChromeCredits');
117 });
xiyuan 2014/05/13 20:45:53 nit: indent two more spaces to align with "functio
zel 2014/05/13 21:02:23 Done.
118 $('eula-chromeos-credits-link').addEventListener('click',
119 function(event) {
120 chrome.send('eulaOnChromeOSCredits');
121 });
xiyuan 2014/05/13 20:45:53 ditto.
zel 2014/05/13 21:02:23 Done.
122 },
123
109 /** 124 /**
110 * Updates localized content of the screen that is not updated via template. 125 * Updates localized content of the screen that is not updated via template.
111 */ 126 */
112 updateLocalizedContent: function() { 127 updateLocalizedContent: function() {
113 // Force iframes to refresh. It's only available method because we have 128 // Force iframes to refresh. It's only available method because we have
114 // no access to iframe.contentWindow. 129 // no access to iframe.contentWindow.
115 if ($('cros-eula-frame').src) { 130 if ($('cros-eula-frame').src) {
116 $('cros-eula-frame').src = $('cros-eula-frame').src; 131 $('cros-eula-frame').src = $('cros-eula-frame').src;
117 } 132 }
118 if ($('oem-eula-frame').src) { 133 if ($('oem-eula-frame').src) {
119 $('oem-eula-frame').src = $('oem-eula-frame').src; 134 $('oem-eula-frame').src = $('oem-eula-frame').src;
120 } 135 }
121 } 136 }
122 }; 137 };
123 }); 138 });
124 139
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698