| OLD | NEW |
| 1 | 1 |
| 2 | 2 |
| 3 /* | 3 /** |
| 4 Use `Polymer.PaperDialogBehavior` and `paper-dialog-common.css` to implement a M
aterial Design | 4 Use `Polymer.PaperDialogBehavior` and `paper-dialog-common.css` to implement a M
aterial Design |
| 5 dialog. | 5 dialog. |
| 6 | 6 |
| 7 For example, if `<paper-dialog-impl>` implements this behavior: | 7 For example, if `<paper-dialog-impl>` implements this behavior: |
| 8 | 8 |
| 9 <paper-dialog-impl> | 9 <paper-dialog-impl> |
| 10 <h2>Header</h2> | 10 <h2>Header</h2> |
| 11 <div>Dialog body</div> | 11 <div>Dialog body</div> |
| 12 <div class="buttons"> | 12 <div class="buttons"> |
| 13 <paper-button dialog-dismiss>Cancel</paper-button> | 13 <paper-button dialog-dismiss>Cancel</paper-button> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * If `modal` is true, this implies `no-cancel-on-outside-click` and `with
-backdrop`. | 63 * If `modal` is true, this implies `no-cancel-on-outside-click` and `with
-backdrop`. |
| 64 */ | 64 */ |
| 65 modal: { | 65 modal: { |
| 66 observer: '_modalChanged', | 66 observer: '_modalChanged', |
| 67 type: Boolean, | 67 type: Boolean, |
| 68 value: false | 68 value: false |
| 69 }, | 69 }, |
| 70 | 70 |
| 71 /** @type {?Node} */ |
| 71 _lastFocusedElement: { | 72 _lastFocusedElement: { |
| 72 type: Node | 73 type: Object |
| 73 }, | 74 }, |
| 74 | 75 |
| 75 _boundOnFocus: { | 76 _boundOnFocus: { |
| 76 type: Function, | 77 type: Function, |
| 77 value: function() { | 78 value: function() { |
| 78 return this._onFocus.bind(this); | 79 return this._onFocus.bind(this); |
| 79 } | 80 } |
| 80 }, | 81 }, |
| 81 | 82 |
| 82 _boundOnBackdropClick: { | 83 _boundOnBackdropClick: { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 this._focusNode.focus(); | 213 this._focusNode.focus(); |
| 213 } | 214 } |
| 214 } | 215 } |
| 215 } | 216 } |
| 216 | 217 |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 /** @polymerBehavior */ | 220 /** @polymerBehavior */ |
| 220 Polymer.PaperDialogBehavior = [Polymer.IronOverlayBehavior, Polymer.PaperDialo
gBehaviorImpl]; | 221 Polymer.PaperDialogBehavior = [Polymer.IronOverlayBehavior, Polymer.PaperDialo
gBehaviorImpl]; |
| 221 | 222 |
| OLD | NEW |