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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_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: 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview Polymer element for displaying material design Terms Of Service
7 * screen.
8 */
9
10 Polymer({
11 is: 'oobe-eula-md',
12
13 properties: {
14 /**
15 * Shows "Loading..." section.
16 */
17 eulaLoadingScreenShown: {
18 type: Boolean,
19 value: false,
20 },
21
22 /**
23 * Shows Terms Of Service frame.
24 */
25 eulaScreenShown: {
26 type: Array,
27 },
28
29 /**
30 * "Accepot and continue" button is disabled until content is loaded.
31 */
32 acceptButtonDisabled: {
33 type: Boolean,
34 value: true,
35 },
36 },
37
38 /**
39 * Event handler that is invoked when 'chrome://terms' is loaded.
40 */
41 onFrameLoad_: function() {
42 this.acceptButtonDisabled = false;
43 },
44
45 /**
46 * This is called when strings are updated.
47 */
48 updateLocalizedContent: function(event) {
49 // This forces frame to reload.
50 this.$.crosEulaFrame.src = this.$.crosEulaFrame.src;
51 },
52
53 /**
54 * This is 'on-tap' event handler for "Accept' button.
michaelpg 2016/08/15 16:16:49 nit: matching quotes
Alexander Alekseev 2016/08/15 19:36:43 Done.
55 */
56 eulaAccepted_: function(event) {
57 chrome.send('login.EulaScreen.userActed', ['accept-button']);
58 },
59 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698