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

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: Remove unneeded method Created 4 years, 7 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 animationConfig: {
15 type: Object,
16 /** @suppress {checkTypes} Compiler doesn't recognize this.$.main. */
Dan Beam 2016/05/03 19:16:49 does /** @this {PolymerElement} */ work?
Devlin 2016/05/03 19:56:55 No. :(
Dan Beam 2016/05/03 20:55:04 note: value: /** @this {PolymerElement} */ functi
17 value: function() {
18 return {
19 entry: [{
20 name: 'hero-animation',
21 id: 'hero',
22 toPage: this
23 }],
24 exit: [{
25 name: 'scale-down-animation',
26 node: this.$.main,
27 transformOrigin: '50% 50%',
28 axis: 'y'
29 }],
30 };
31 },
32 },
33
34 /**
35 * The underlying ExtensionInfo for the details being displayed.
36 * @type {chrome.developerPrivate.ExtensionInfo}
37 */
38 data: {
39 type: Object,
40 }
41 },
42
43 ready: function() {
44 this.sharedElements = {hero: this.$.main};
45 },
46
47 /** @private */
48 onCloseButtonClick_: function() {
49 this.fire('close');
Dan Beam 2016/05/03 19:16:49 i might be crazy, but i vaguely remember 'event-na
Devlin 2016/05/03 19:56:55 Well, according to fire(), bubbles defaults to tru
50 },
51
52 /** @private */
Dan Beam 2016/05/03 19:16:49 @return
Devlin 2016/05/03 19:56:55 Done.
53 hasDependentExtensions_: function() {
54 return this.data.dependentExtensions.length > 0;
55 },
56
57 /** @private */
Dan Beam 2016/05/03 19:16:49 @return
Devlin 2016/05/03 19:56:55 Done.
58 computeOptionsSectionShown_: function() {
Dan Beam 2016/05/03 19:16:49 nit: showOptionSection_ or shouldShowOptionsSectio
Devlin 2016/05/03 19:56:55 Done.
59 // TODO(devlin): Also include run on all urls, file access, etc.
60 return this.data.incognitoAccess.isEnabled;
61 },
62 });
63
64 return {DetailView: DetailView};
65 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698