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

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

Issue 2947483002: Create OOBE screen for Waiting for Container ready (Closed)
Patch Set: Created 3 years, 6 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 Oobe Voice Interaction Value Prop screen implementation. 6 * @fileoverview Oobe Voice Interaction Value Prop screen implementation.
7 */ 7 */
8 8
9 login.createScreen('VoiceInteractionValuePropScreen', 9 login.createScreen('VoiceInteractionValuePropScreen',
10 'voice-interaction-value-prop', function() { 10 'voice-interaction-value-prop', function() {
11 return { 11 return {
12 12
13 /**
14 * Returns a control which should receive an initial focus.
15 */
16 get defaultControl() {
17 return $('voice-interaction-value-prop-md').getElement('continueButton');
18 },
19
13 /** @Override */ 20 /** @Override */
14 onBeforeShow: function(data) { 21 onBeforeShow: function(data) {
15 var valueView = $('voice-interaction-value-prop-md'). 22 var valueView = $('voice-interaction-value-prop-md').
16 getElement('value-prop-view'); 23 getElement('value-prop-view');
17 24
18 valueView.addContentScripts([ 25 valueView.addContentScripts([
19 { 26 {
20 name: 'stripLinks', 27 name: 'stripLinks',
21 matches: ['<all_urls>'], 28 matches: ['<all_urls>'],
22 js: { code: 29 js: { code:
(...skipping 15 matching lines...) Expand all
38 }, {urls: ['<all_urls>'], types: ['main_frame']}); 45 }, {urls: ['<all_urls>'], types: ['main_frame']});
39 46
40 var locale = loadTimeData.getString('locale'); 47 var locale = loadTimeData.getString('locale');
41 valueView.src = 'https://www.gstatic.com/opa-chromeos/oobe/' + locale 48 valueView.src = 'https://www.gstatic.com/opa-chromeos/oobe/' + locale
42 + '/value_proposition.html'; 49 + '/value_proposition.html';
43 50
44 Oobe.getInstance().headerHidden = true; 51 Oobe.getInstance().headerHidden = true;
45 } 52 }
46 }; 53 };
47 }); 54 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698