| 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 /** | 5 /** |
| 6 * @fileoverview 'settings-dialog' is a component for showing a modal dialog. | 6 * @fileoverview 'settings-dialog' is a component for showing a modal dialog. |
| 7 */ | 7 */ |
| 8 Polymer({ | 8 Polymer({ |
| 9 is: 'settings-dialog', | 9 is: 'settings-dialog', |
| 10 | 10 |
| 11 properties: { | 11 properties: { |
| 12 /** @override */ | 12 /** @override */ |
| 13 noCancelOnOutsideClick: { | 13 noCancelOnOutsideClick: { |
| 14 type: Boolean, | 14 type: Boolean, |
| 15 value: true, | 15 value: true, |
| 16 }, | 16 }, |
| 17 | 17 |
| 18 /** @override */ | 18 /** @override */ |
| 19 noCancelOnEscKey: { | 19 noCancelOnEscKey: { |
| 20 type: Boolean, | 20 type: Boolean, |
| 21 value: false, | 21 value: false, |
| 22 }, | 22 }, |
| 23 | 23 |
| 24 sizingTarget: { |
| 25 type: Element, |
| 26 value: function() { |
| 27 return this.$$('.body-container'); |
| 28 }, |
| 29 }, |
| 30 |
| 24 /** @override */ | 31 /** @override */ |
| 25 withBackdrop: { | 32 withBackdrop: { |
| 26 type: Boolean, | 33 type: Boolean, |
| 27 value: true, | 34 value: true, |
| 28 }, | 35 }, |
| 29 }, | 36 }, |
| 30 | 37 |
| 31 behaviors: [Polymer.PaperDialogBehavior], | 38 behaviors: [Polymer.PaperDialogBehavior], |
| 32 | 39 |
| 33 /** @return {!PaperIconButtonElement} */ | 40 /** @return {!PaperIconButtonElement} */ |
| 34 getCloseButton: function() { | 41 getCloseButton: function() { |
| 35 return this.$.close; | 42 return this.$.close; |
| 36 }, | 43 }, |
| 37 }); | 44 }); |
| OLD | NEW |