1 <!-- 2 -- Copyright 2013 The Chromium Authors. All rights reserved. 3 -- Use of this source code is governed by a BSD-style license that can be 4 -- found in the LICENSE file. 5 --> 6 7 <polymer-element name="kb-key-import" attributes="importId"> 8 <template> 9 <style> 10 @host { 11 * { 12 display: none; 13 } 14 } 15 </style> 16 </template> 17 <script> 18 Polymer('kb-key-import', { 19 /** 20 * The id of the document fragment that will be imported. 21 */ 22 importId: null, 23 24 /** 25 * Import content from a document fragment. 26 * @param {!DocumentFragment} content Document fragment that contains 27 * the content to import. 28 */ 29 importDoc: function(content) { 30 return content.querySelector('#' + this.importId).content; 31 } 32 }); 33 </script> 34 </polymer-element> 35