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