| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.exportPath('extensions'); | 5 cr.exportPath('extensions'); |
| 6 | 6 |
| 7 // Declare this here to make closure compiler happy, and us sad. | 7 // Declare this here to make closure compiler happy, and us sad. |
| 8 /** @enum {number} */ | 8 /** @enum {number} */ |
| 9 extensions.ShowingType = { | 9 extensions.ShowingType = { |
| 10 EXTENSIONS: 0, | 10 EXTENSIONS: 0, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 /** Shows the keyboard shortcuts page. */ | 42 /** Shows the keyboard shortcuts page. */ |
| 43 showKeyboardShortcuts: assertNotReached, | 43 showKeyboardShortcuts: assertNotReached, |
| 44 | 44 |
| 45 /** Shows the pack extension dialog. */ | 45 /** Shows the pack extension dialog. */ |
| 46 showPackDialog: assertNotReached, | 46 showPackDialog: assertNotReached, |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 var Sidebar = Polymer({ | 49 var Sidebar = Polymer({ |
| 50 is: 'extensions-sidebar', | 50 is: 'extensions-sidebar', |
| 51 | 51 |
| 52 behaviors: [I18nBehavior], |
| 53 |
| 52 properties: { | 54 properties: { |
| 53 inDevMode: { | 55 inDevMode: { |
| 54 type: Boolean, | 56 type: Boolean, |
| 55 value: false, | 57 value: false, |
| 56 }, | 58 }, |
| 57 }, | 59 }, |
| 58 | 60 |
| 59 behaviors: [I18nBehavior], | |
| 60 | |
| 61 /** @param {extensions.SidebarDelegate} delegate */ | 61 /** @param {extensions.SidebarDelegate} delegate */ |
| 62 setDelegate: function(delegate) { | 62 setDelegate: function(delegate) { |
| 63 /** @private {extensions.SidebarDelegate} */ | 63 /** @private {extensions.SidebarDelegate} */ |
| 64 this.delegate_ = delegate; | 64 this.delegate_ = delegate; |
| 65 }, | 65 }, |
| 66 | 66 |
| 67 /** @param {extensions.SidebarListDelegate} listDelegate */ | 67 /** @param {extensions.SidebarListDelegate} listDelegate */ |
| 68 setListDelegate: function(listDelegate) { | 68 setListDelegate: function(listDelegate) { |
| 69 /** @private {extensions.SidebarListDelegate} */ | 69 /** @private {extensions.SidebarListDelegate} */ |
| 70 this.listDelegate_ = listDelegate; | 70 this.listDelegate_ = listDelegate; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 }, | 107 }, |
| 108 }); | 108 }); |
| 109 | 109 |
| 110 return { | 110 return { |
| 111 Sidebar: Sidebar, | 111 Sidebar: Sidebar, |
| 112 SidebarDelegate: SidebarDelegate, | 112 SidebarDelegate: SidebarDelegate, |
| 113 SidebarListDelegate: SidebarListDelegate, | 113 SidebarListDelegate: SidebarListDelegate, |
| 114 }; | 114 }; |
| 115 }); | 115 }); |
| 116 | 116 |
| OLD | NEW |