Index: chrome/browser/resources/chromeos/login/oobe_voice_interaction_value_prop.js |
diff --git a/chrome/browser/resources/chromeos/login/oobe_voice_interaction_value_prop.js b/chrome/browser/resources/chromeos/login/oobe_voice_interaction_value_prop.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6a86000e8954bad877d99338176d8c047eb8315e |
--- /dev/null |
+++ b/chrome/browser/resources/chromeos/login/oobe_voice_interaction_value_prop.js |
@@ -0,0 +1,39 @@ |
+// Copyright 2017 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 voice |
+ * interaction value prop screen. |
+ */ |
+ |
+Polymer({ |
+ is: 'voice-interaction-value-prop-md', |
+ |
+ /** |
+ * Returns element by its id. |
+ */ |
+ getElement: function(id) { |
+ return this.$[id]; |
+ }, |
+ |
+ /** |
+ * On-tap event handler for no thanks button. |
+ * |
+ * @private |
+ */ |
+ onNoThanksTap_: function() { |
+ chrome.send('login.VoiceInteractionValuePropScreen.userActed', |
+ ['no-thanks-pressed']); |
+ }, |
+ |
+ /** |
+ * On-tap event handler for continue button. |
+ * |
+ * @private |
+ */ |
+ onContinueTap_: function() { |
+ chrome.send('login.VoiceInteractionValuePropScreen.userActed', |
+ ['continue-pressed']); |
+ }, |
+}); |