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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-dialog-behavior/paper-dialog-behavior-extracted.js

Issue 1187823002: Update Polymer components and re-run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698