| 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 * `cr-dropdown-menu` is a Chrome-specific wrapper around paper-dropdown-menu. | 7 * `cr-dropdown-menu` is a Chrome-specific wrapper around paper-dropdown-menu. |
| 8 * It includes a paper-dropdown so its content should just be a core-menu and | 8 * It includes a paper-dropdown so its content should just be a core-menu and |
| 9 * items. | 9 * items. |
| 10 * | 10 * |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 */ | 42 */ |
| 43 label: '<Dropdown Menu Label>', | 43 label: '<Dropdown Menu Label>', |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * True if the menu is disabled. | 46 * True if the menu is disabled. |
| 47 * | 47 * |
| 48 * @attribute disabled | 48 * @attribute disabled |
| 49 * @type boolean | 49 * @type boolean |
| 50 * @default false | 50 * @default false |
| 51 */ | 51 */ |
| 52 disabled: {value: false, reflected: true}, | 52 disabled: {value: false, reflect: true}, |
| 53 }, | 53 }, |
| 54 | 54 |
| 55 /** @override */ | 55 /** @override */ |
| 56 domReady: function() { | 56 domReady: function() { |
| 57 assert( | 57 assert( |
| 58 this.querySelector('.menu'), | 58 this.querySelector('.menu'), |
| 59 'cr-dropdown-menu must have a menu child with class="menu".'); | 59 'cr-dropdown-menu must have a menu child with class="menu".'); |
| 60 }, | 60 }, |
| 61 }); | 61 }); |
| OLD | NEW |