Chromium Code Reviews| 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. |
|
stevenjb
2015/03/06 17:39:15
Is this a Polymer convention or a Closure one? I d
michaelpg
2015/03/06 18:24:09
Polymer. The core-doc-viewer will format this as c
| |
| 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 * |
| 11 * Example: | 11 * Example: |
| 12 * <cr-dropdown-menu> | 12 * <cr-dropdown-menu> |
| 13 * <core-menu> | 13 * <core-menu> |
| 14 * <paper-item>Chrome</paper-item> | 14 * <paper-item>Chrome</paper-item> |
| 15 * <paper-item>Firefox</paper-item> | 15 * <paper-item>Firefox</paper-item> |
| 16 * <paper-item>IE</paper-item> | 16 * <paper-item>IE</paper-item> |
| 17 * <paper-item>Opera</paper-item> | 17 * <paper-item>Opera</paper-item> |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 43 label: '<Dropdown Menu Label>', | 43 label: '<Dropdown Menu Label>', |
| 44 }, | 44 }, |
| 45 | 45 |
| 46 /** @override */ | 46 /** @override */ |
| 47 domReady: function() { | 47 domReady: function() { |
| 48 assert( | 48 assert( |
| 49 this.querySelector('.menu'), | 49 this.querySelector('.menu'), |
| 50 'cr-dropdown-menu must have a menu child with class="menu".'); | 50 'cr-dropdown-menu must have a menu child with class="menu".'); |
| 51 }, | 51 }, |
| 52 }); | 52 }); |
| OLD | NEW |