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

Side by Side Diff: third_party/polymer/v1_0/components/paper-dialog-behavior/paper-dialog-behavior.html

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 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 10
11 <link rel="import" href="../polymer/polymer.html"> 11 <link rel="import" href="../polymer/polymer.html">
12 <link rel="import" href="../iron-overlay-behavior/iron-overlay-behavior.html"> 12 <link rel="import" href="../iron-overlay-behavior/iron-overlay-behavior.html">
13 <link rel="import" href="../paper-styles/paper-styles.html"> 13 <link rel="import" href="../paper-styles/paper-styles.html">
14 14
15 <script> 15 <script>
16 16
17 /* 17 /**
18 Use `Polymer.PaperDialogBehavior` and `paper-dialog-common.css` to implement a M aterial Design 18 Use `Polymer.PaperDialogBehavior` and `paper-dialog-common.css` to implement a M aterial Design
19 dialog. 19 dialog.
20 20
21 For example, if `<paper-dialog-impl>` implements this behavior: 21 For example, if `<paper-dialog-impl>` implements this behavior:
22 22
23 <paper-dialog-impl> 23 <paper-dialog-impl>
24 <h2>Header</h2> 24 <h2>Header</h2>
25 <div>Dialog body</div> 25 <div>Dialog body</div>
26 <div class="buttons"> 26 <div class="buttons">
27 <paper-button dialog-dismiss>Cancel</paper-button> 27 <paper-button dialog-dismiss>Cancel</paper-button>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 /** 76 /**
77 * If `modal` is true, this implies `no-cancel-on-outside-click` and `with -backdrop`. 77 * If `modal` is true, this implies `no-cancel-on-outside-click` and `with -backdrop`.
78 */ 78 */
79 modal: { 79 modal: {
80 observer: '_modalChanged', 80 observer: '_modalChanged',
81 type: Boolean, 81 type: Boolean,
82 value: false 82 value: false
83 }, 83 },
84 84
85 /** @type {?Node} */
85 _lastFocusedElement: { 86 _lastFocusedElement: {
86 type: Node 87 type: Object
87 }, 88 },
88 89
89 _boundOnFocus: { 90 _boundOnFocus: {
90 type: Function, 91 type: Function,
91 value: function() { 92 value: function() {
92 return this._onFocus.bind(this); 93 return this._onFocus.bind(this);
93 } 94 }
94 }, 95 },
95 96
96 _boundOnBackdropClick: { 97 _boundOnBackdropClick: {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 228 }
228 } 229 }
229 } 230 }
230 231
231 }; 232 };
232 233
233 /** @polymerBehavior */ 234 /** @polymerBehavior */
234 Polymer.PaperDialogBehavior = [Polymer.IronOverlayBehavior, Polymer.PaperDialo gBehaviorImpl]; 235 Polymer.PaperDialogBehavior = [Polymer.IronOverlayBehavior, Polymer.PaperDialo gBehaviorImpl];
235 236
236 </script> 237 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698