| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.define('extensions', function() { | 5 cr.define('extensions', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 var DetailView = Polymer({ | 8 var DetailView = Polymer({ |
| 9 is: 'extensions-detail-view', | 9 is: 'extensions-detail-view', |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 shouldShowOptionsButton_: function() { | 67 shouldShowOptionsButton_: function() { |
| 68 return !!this.data.optionsPage; | 68 return !!this.data.optionsPage; |
| 69 }, | 69 }, |
| 70 | 70 |
| 71 /** | 71 /** |
| 72 * @return {boolean} | 72 * @return {boolean} |
| 73 * @private | 73 * @private |
| 74 */ | 74 */ |
| 75 shouldShowOptionsSection_: function() { | 75 shouldShowOptionsSection_: function() { |
| 76 return this.data.incognitoAccess.isEnabled || | 76 return this.data.incognitoAccess.isEnabled || |
| 77 this.data.fileAccess.isEnabled || | 77 this.data.fileAccess.isEnabled || this.data.runOnAllUrls.isEnabled || |
| 78 this.data.runOnAllUrls.isEnabled || | 78 this.data.errorCollection.isEnabled; |
| 79 this.data.errorCollection.isEnabled; | |
| 80 }, | 79 }, |
| 81 | 80 |
| 82 /** @private */ | 81 /** @private */ |
| 83 onOptionsButtonTap_: function() { | 82 onOptionsButtonTap_: function() { |
| 84 this.delegate.showItemOptionsPage(this.data.id); | 83 this.delegate.showItemOptionsPage(this.data.id); |
| 85 }, | 84 }, |
| 86 | 85 |
| 87 /** @private */ | 86 /** @private */ |
| 88 onAllowIncognitoChange_: function() { | 87 onAllowIncognitoChange_: function() { |
| 89 this.delegate.setItemAllowedIncognito( | 88 this.delegate.setItemAllowedIncognito( |
| (...skipping 28 matching lines...) Expand all Loading... |
| 118 | 117 |
| 119 /** @private */ | 118 /** @private */ |
| 120 computeSourceString_: function() { | 119 computeSourceString_: function() { |
| 121 return extensions.getItemSourceString( | 120 return extensions.getItemSourceString( |
| 122 extensions.getItemSource(this.data)); | 121 extensions.getItemSource(this.data)); |
| 123 } | 122 } |
| 124 }); | 123 }); |
| 125 | 124 |
| 126 return {DetailView: DetailView}; | 125 return {DetailView: DetailView}; |
| 127 }); | 126 }); |
| OLD | NEW |