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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/login/oobe_eula.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_eula.js b/chrome/browser/resources/chromeos/login/oobe_eula.js
new file mode 100644
index 0000000000000000000000000000000000000000..47c6069bceda05b93308a83c3f102356c5a77d36
--- /dev/null
+++ b/chrome/browser/resources/chromeos/login/oobe_eula.js
@@ -0,0 +1,59 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview Polymer element for displaying material design Terms Of Service
+ * screen.
+ */
+
+Polymer({
+ is: 'oobe-eula-md',
+
+ properties: {
+ /**
+ * Shows "Loading..." section.
+ */
+ eulaLoadingScreenShown: {
+ type: Boolean,
+ value: false,
+ },
+
+ /**
+ * Shows Terms Of Service frame.
+ */
+ eulaScreenShown: {
+ type: Array,
+ },
+
+ /**
+ * "Accepot and continue" button is disabled until content is loaded.
+ */
+ acceptButtonDisabled: {
+ type: Boolean,
+ value: true,
+ },
+ },
+
+ /**
+ * Event handler that is invoked when 'chrome://terms' is loaded.
+ */
+ onFrameLoad_: function() {
+ this.acceptButtonDisabled = false;
+ },
+
+ /**
+ * This is called when strings are updated.
+ */
+ updateLocalizedContent: function(event) {
+ // This forces frame to reload.
+ this.$.crosEulaFrame.src = this.$.crosEulaFrame.src;
+ },
+
+ /**
+ * This is 'on-tap' event handler for 'Accept' button.
+ */
+ eulaAccepted_: function(event) {
+ chrome.send('login.EulaScreen.userActed', ['accept-button']);
+ },
+});
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_eula.html ('k') | chrome/browser/resources/chromeos/login/oobe_screen_eula.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698