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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_voice_interaction_value_prop.js

Issue 2984023002: Rename buttons for voice interaction value prop screen (Closed)
Patch Set: Created 3 years, 5 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
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({
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 valueView_: null, 72 valueView_: null,
73 73
74 /** 74 /**
75 * Whether the screen has been initialized. 75 * Whether the screen has been initialized.
76 * @type {boolean} 76 * @type {boolean}
77 * @private 77 * @private
78 */ 78 */
79 initialized_: false, 79 initialized_: false,
80 80
81 /** 81 /**
82 * On-tap event handler for no thanks button. 82 * On-tap event handler for skip button.
83 * 83 *
84 * @private 84 * @private
85 */ 85 */
86 onNoThanksTap_: function() { 86 onSkipTap_: function() {
87 chrome.send( 87 chrome.send(
88 'login.VoiceInteractionValuePropScreen.userActed', 88 'login.VoiceInteractionValuePropScreen.userActed', ['skip-pressed']);
89 ['no-thanks-pressed']);
90 }, 89 },
91 90
92 /** 91 /**
93 * On-tap event handler for retry button. 92 * On-tap event handler for retry button.
94 * 93 *
95 * @private 94 * @private
96 */ 95 */
97 onRetryTap_: function() { 96 onRetryTap_: function() {
98 this.reloadValueProp(); 97 this.reloadValueProp();
99 }, 98 },
100 99
101 /** 100 /**
102 * On-tap event handler for continue button. 101 * On-tap event handler for next button.
103 * 102 *
104 * @private 103 * @private
105 */ 104 */
106 onContinueTap_: function() { 105 onNextTap_: function() {
107 chrome.send( 106 chrome.send(
108 'login.VoiceInteractionValuePropScreen.userActed', 107 'login.VoiceInteractionValuePropScreen.userActed', ['next-pressed']);
109 ['continue-pressed']);
110 }, 108 },
111 109
112 /** 110 /**
113 * Add class to the list of classes of root elements. 111 * Add class to the list of classes of root elements.
114 * @param {string} className class to add 112 * @param {string} className class to add
115 * 113 *
116 * @private 114 * @private
117 */ 115 */
118 addClass_: function(className) { 116 addClass_: function(className) {
119 this.$['voice-dialog'].classList.add(className); 117 this.$['voice-dialog'].classList.add(className);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 }, 227 },
230 run_at: 'document_end' 228 run_at: 'document_end'
231 }]); 229 }]);
232 230
233 this.initialized_ = true; 231 this.initialized_ = true;
234 } 232 }
235 233
236 this.reloadValueProp(); 234 this.reloadValueProp();
237 }, 235 },
238 }); 236 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698