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

Side by Side Diff: chrome/browser/resources/md_extensions/detail_view.js

Issue 1913353002: [MD Extensions] Add a details subpage, move to one list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
(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 }; }
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 console.warn('Closing');
Devlin 2016/04/23 01:50:10 Whoops - will remove.
50 this.fire('close');
51 },
52
53 /** @private */
54 hasDependentExtensions_: function() {
55 return this.data.dependentExtensions.length > 0;
56 },
57 });
58
59 return {DetailView: DetailView};
60 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698