| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 Assertion support. | 6 * @fileoverview Assertion support. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Verify |condition| is truthy and return |condition| if so. | 10 * Verify |condition| is truthy and return |condition| if so. |
| (...skipping 10537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10548 * to itself when opened. | 10548 * to itself when opened. |
| 10549 * Set to true in order to prevent scroll from being constrained | 10549 * Set to true in order to prevent scroll from being constrained |
| 10550 * to the dropdown when it opens. | 10550 * to the dropdown when it opens. |
| 10551 */ | 10551 */ |
| 10552 allowOutsideScroll: { | 10552 allowOutsideScroll: { |
| 10553 type: Boolean, | 10553 type: Boolean, |
| 10554 value: false | 10554 value: false |
| 10555 }, | 10555 }, |
| 10556 | 10556 |
| 10557 /** | 10557 /** |
| 10558 * Whether focus should be restored to the button when the menu closes
. |
| 10559 */ |
| 10560 restoreFocusOnClose: { |
| 10561 type: Boolean, |
| 10562 value: true |
| 10563 }, |
| 10564 |
| 10565 /** |
| 10558 * This is the element intended to be bound as the focus target | 10566 * This is the element intended to be bound as the focus target |
| 10559 * for the `iron-dropdown` contained by `paper-menu-button`. | 10567 * for the `iron-dropdown` contained by `paper-menu-button`. |
| 10560 */ | 10568 */ |
| 10561 _dropdownContent: { | 10569 _dropdownContent: { |
| 10562 type: Object | 10570 type: Object |
| 10563 } | 10571 } |
| 10564 }, | 10572 }, |
| 10565 | 10573 |
| 10566 hostAttributes: { | 10574 hostAttributes: { |
| 10567 role: 'group', | 10575 role: 'group', |
| (...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11948 Manager.get().updateItem_(index, data); | 11956 Manager.get().updateItem_(index, data); |
| 11949 }; | 11957 }; |
| 11950 | 11958 |
| 11951 return {Manager: Manager}; | 11959 return {Manager: Manager}; |
| 11952 }); | 11960 }); |
| 11953 // Copyright 2015 The Chromium Authors. All rights reserved. | 11961 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 11954 // Use of this source code is governed by a BSD-style license that can be | 11962 // Use of this source code is governed by a BSD-style license that can be |
| 11955 // found in the LICENSE file. | 11963 // found in the LICENSE file. |
| 11956 | 11964 |
| 11957 window.addEventListener('load', downloads.Manager.onLoad); | 11965 window.addEventListener('load', downloads.Manager.onLoad); |
| OLD | NEW |