| OLD | NEW |
| 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 | 12 |
| 13 <link rel="import" href="../iron-overlay-behavior.html"> | 13 <link rel="import" href="../iron-overlay-behavior.html"> |
| 14 | 14 |
| 15 <dom-module id="test-overlay2"> | 15 <dom-module id="test-overlay2"> |
| 16 | 16 |
| 17 <style> | 17 <style> |
| 18 | 18 |
| 19 :host { | 19 :host { |
| 20 background: white; | 20 background: white; |
| 21 color: black; | 21 color: black; |
| 22 border: 1px solid black; | 22 border: 1px solid black; |
| 23 } | 23 } |
| 24 | 24 |
| 25 </style> | 25 </style> |
| 26 | 26 |
| 27 <template> | 27 <template> |
| 28 <button id="first">first</button> |
| 28 <content></content> | 29 <content></content> |
| 30 <button id="last">last</button> |
| 29 </template> | 31 </template> |
| 30 | 32 |
| 31 </dom-module> | 33 </dom-module> |
| 32 | 34 |
| 33 <script> | 35 <script> |
| 34 | 36 |
| 35 (function() { | 37 (function() { |
| 36 | 38 |
| 37 Polymer({ | 39 Polymer({ |
| 38 | 40 |
| 39 is: 'test-overlay2', | 41 is: 'test-overlay2', |
| 40 | 42 |
| 41 behaviors: [ | 43 behaviors: [ |
| 42 Polymer.IronOverlayBehavior | 44 Polymer.IronOverlayBehavior |
| 43 ] | 45 ], |
| 46 |
| 47 get _focusableNodes() { |
| 48 return [this.$.first, this.$.last]; |
| 49 } |
| 44 | 50 |
| 45 }); | 51 }); |
| 46 | 52 |
| 47 })(); | 53 })(); |
| 48 | 54 |
| 49 </script> | 55 </script> |
| OLD | NEW |