OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 voice |
| 7 * interaction value prop screen. |
| 8 */ |
| 9 |
| 10 Polymer({ |
| 11 is: 'voice-interaction-value-prop-md', |
| 12 |
| 13 /** |
| 14 * Returns element by its id. |
| 15 */ |
| 16 getElement: function(id) { |
| 17 return this.$[id]; |
| 18 }, |
| 19 |
| 20 /** |
| 21 * On-tap event handler for no thanks button. |
| 22 * |
| 23 * @private |
| 24 */ |
| 25 onNoThanksTap_: function() { |
| 26 chrome.send('login.VoiceInteractionValuePropScreen.userActed', |
| 27 ['no-thanks-pressed']); |
| 28 }, |
| 29 |
| 30 /** |
| 31 * On-tap event handler for continue button. |
| 32 * |
| 33 * @private |
| 34 */ |
| 35 onContinueTap_: function() { |
| 36 chrome.send('login.VoiceInteractionValuePropScreen.userActed', |
| 37 ['continue-pressed']); |
| 38 }, |
| 39 }); |
OLD | NEW |