OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 Polymer({ | 5 Polymer({ |
6 is: 'oobe-dialog', | 6 is: 'oobe-dialog', |
7 | 7 |
8 properties: { | 8 properties: { |
9 /** | 9 /** |
10 * Controls visibility of the bottom-buttons element. | 10 * Controls visibility of the bottom-buttons element. |
11 */ | 11 */ |
12 hasButtons: { | 12 hasButtons: { |
13 type: Boolean, | 13 type: Boolean, |
14 value: false, | 14 value: false, |
15 }, | 15 }, |
16 | 16 |
17 /** | 17 /** |
| 18 * Hide the box shadow on the top of oobe-bottom |
| 19 */ |
| 20 hideShadow: { |
| 21 type: Boolean, |
| 22 value: false, |
| 23 }, |
| 24 |
| 25 /** |
| 26 * Control visibility of the footer container. |
| 27 */ |
| 28 noFooter: { |
| 29 type: Boolean, |
| 30 value: false, |
| 31 }, |
| 32 |
| 33 /** |
18 * Switches styles to "Welcome screen". | 34 * Switches styles to "Welcome screen". |
19 */ | 35 */ |
20 welcomeScreen: { | 36 welcomeScreen: { |
21 type: Boolean, | 37 type: Boolean, |
22 value: false, | 38 value: false, |
23 reflectToAttribute: true, | 39 reflectToAttribute: true, |
24 }, | 40 }, |
25 }, | 41 }, |
26 | 42 |
27 focus: function() { | 43 focus: function() { |
(...skipping 10 matching lines...) Expand all Loading... |
38 * This is called from oobe_welcome when this dialog is shown. | 54 * This is called from oobe_welcome when this dialog is shown. |
39 */ | 55 */ |
40 show: function() { | 56 show: function() { |
41 var focusedElements = this.getElementsByClassName('focus-on-show'); | 57 var focusedElements = this.getElementsByClassName('focus-on-show'); |
42 if (focusedElements.length > 0) | 58 if (focusedElements.length > 0) |
43 focusedElements[0].focus(); | 59 focusedElements[0].focus(); |
44 | 60 |
45 this.fire('show-dialog'); | 61 this.fire('show-dialog'); |
46 }, | 62 }, |
47 }); | 63 }); |
OLD | NEW |