| 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-ui' implements the UI for the Settings page. | 7 * 'settings-ui' implements the UI for the Settings page. |
| 8 * | 8 * |
| 9 * Example: | 9 * Example: |
| 10 * | 10 * |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 observer: 'directionDelegateChanged_', | 25 observer: 'directionDelegateChanged_', |
| 26 type: Object, | 26 type: Object, |
| 27 }, | 27 }, |
| 28 | 28 |
| 29 appealClosed_: { | 29 appealClosed_: { |
| 30 type: Boolean, | 30 type: Boolean, |
| 31 value: function() { | 31 value: function() { |
| 32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_); | 32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_); |
| 33 }, | 33 }, |
| 34 }, | 34 }, |
| 35 |
| 36 /** @private */ |
| 37 appealBugUrl_: { |
| 38 type: String, |
| 39 value: function() { |
| 40 var url = |
| 41 'https://bugs.chromium.org/p/chromium/issues/entry?' + |
| 42 'labels=Proj-MaterialDesign-WebUI,Pri-2,Type-Bug&' + |
| 43 'components=UI%3ESettings&description='; |
| 44 var description = |
| 45 'What steps will reproduce the problem?\n' + |
| 46 '(1) \n(2) \n(3) \n\nWhat is the expected result?\n\n\n' + |
| 47 'What happens instead?\n\n\nPlease provide any additional ' + |
| 48 'information below. Attach a screenshot if possible.\n\n'; |
| 49 var version = navigator.userAgent.match(/Chrom(?:e|ium)\/([\d.]+)/); |
| 50 if (version) |
| 51 description += 'Version: ' + version[1]; |
| 52 url += encodeURIComponent(description); |
| 53 return url; |
| 54 }, |
| 55 }, |
| 35 }, | 56 }, |
| 36 | 57 |
| 37 listeners: { | 58 listeners: { |
| 38 'sideNav.iron-activate': 'onIronActivate_', | 59 'sideNav.iron-activate': 'onIronActivate_', |
| 39 }, | 60 }, |
| 40 | 61 |
| 41 /** @private */ | 62 /** @private */ |
| 42 onCloseAppealTap_: function() { | 63 onCloseAppealTap_: function() { |
| 43 sessionStorage.appealClosed_ = this.appealClosed_ = true; | 64 sessionStorage.appealClosed_ = this.appealClosed_ = true; |
| 44 }, | 65 }, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 63 this.$$('settings-main').searchContents(e.detail); | 84 this.$$('settings-main').searchContents(e.detail); |
| 64 }.bind(this)); | 85 }.bind(this)); |
| 65 }, | 86 }, |
| 66 | 87 |
| 67 /** @private */ | 88 /** @private */ |
| 68 directionDelegateChanged_: function() { | 89 directionDelegateChanged_: function() { |
| 69 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? | 90 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? |
| 70 'right' : 'left'; | 91 'right' : 'left'; |
| 71 }, | 92 }, |
| 72 }); | 93 }); |
| OLD | NEW |