Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 cr.define('extensions', function() { | |
| 6 'use strict'; | |
| 7 | |
| 8 var DetailView = Polymer({ | |
| 9 is: 'extensions-detail-view', | |
| 10 | |
| 11 behaviors: [Polymer.NeonAnimatableBehavior, I18nBehavior], | |
| 12 | |
| 13 properties: { | |
| 14 sharedElements: { | |
| 15 type: Object, | |
| 16 value: function() { return { hero: this.$.main }; } | |
|
Dan Beam
2016/04/26 01:32:12
{hero: this.$.main}
no spaces around braces
Dan Beam
2016/04/26 01:32:12
why the `sharedElements` object when there's only
Dan Beam
2016/04/26 01:32:12
maybe just set this inside of ready? i.e.
ready:
Devlin
2016/04/26 17:24:18
Was following the neon pages example. But if we d
Devlin
2016/04/26 17:24:18
Done.
Devlin
2016/04/26 17:24:18
That doesn't seem to work (the hero animation look
| |
| 17 }, | |
| 18 | |
| 19 animationConfig: { | |
| 20 type: Object, | |
| 21 value: function() { | |
| 22 return { | |
| 23 entry: [{ | |
| 24 name: 'hero-animation', | |
| 25 id: 'hero', | |
| 26 toPage: this | |
| 27 }], | |
| 28 exit: [{ | |
| 29 name: 'scale-down-animation', | |
| 30 node: this.$.main, | |
| 31 transformOrigin: '50% 50%', | |
| 32 axis: 'y' | |
| 33 }], | |
| 34 }; | |
| 35 }, | |
| 36 }, | |
| 37 | |
| 38 /** | |
| 39 * The underlying ExtensionInfo for the details being displayed. | |
| 40 * @type {chrome.developerPrivate.ExtensionInfo} | |
| 41 */ | |
| 42 data: { | |
| 43 type: Object, | |
| 44 } | |
| 45 }, | |
| 46 | |
| 47 /** @private */ | |
| 48 onCloseButtonClick_: function() { | |
| 49 this.fire('close'); | |
| 50 }, | |
| 51 | |
| 52 /** @private */ | |
| 53 hasDependentExtensions_: function() { | |
| 54 return this.data.dependentExtensions.length > 0; | |
| 55 }, | |
| 56 }); | |
| 57 | |
| 58 return {DetailView: DetailView}; | |
| 59 }); | |
| OLD | NEW |