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

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

Issue 2247723002: ChromeOS: Implement EULA screen of material design OOBE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 4 years, 4 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 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 var CONTEXT_KEY_USAGE_STATS_ENABLED = 'usageStatsEnabled'; 10 var CONTEXT_KEY_USAGE_STATS_ENABLED = 'usageStatsEnabled';
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 $('eula-chromeos-credits-link').addEventListener('click', 122 $('eula-chromeos-credits-link').addEventListener('click',
123 function(event) { 123 function(event) {
124 chrome.send('eulaOnChromeOSCredits'); 124 chrome.send('eulaOnChromeOSCredits');
125 }); 125 });
126 }, 126 },
127 127
128 /** 128 /**
129 * Updates localized content of the screen that is not updated via template. 129 * Updates localized content of the screen that is not updated via template.
130 */ 130 */
131 updateLocalizedContent: function() { 131 updateLocalizedContent: function() {
132 $('oobe-eula-md').updateLocalizedContent();
133
132 // Force iframes to refresh. It's only available method because we have 134 // Force iframes to refresh. It's only available method because we have
133 // no access to iframe.contentWindow. 135 // no access to iframe.contentWindow.
134 if ($('cros-eula-frame').src) { 136 if ($('cros-eula-frame').src) {
135 $('cros-eula-frame').src = $('cros-eula-frame').src; 137 $('cros-eula-frame').src = $('cros-eula-frame').src;
136 } 138 }
137 if ($('oem-eula-frame').src) { 139 if ($('oem-eula-frame').src) {
138 $('oem-eula-frame').src = $('oem-eula-frame').src; 140 $('oem-eula-frame').src = $('oem-eula-frame').src;
139 } 141 }
140 } 142 }
141 }; 143 };
142 }); 144 });
143 145
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698