| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/html/icon.html"> | 4 <link rel="import" href="chrome://resources/html/icon.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-drop
down.html"> | |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 6 <link rel="import" href="/on_startup_page/startup_urls_page_browser_proxy.html"> | 6 <link rel="import" href="/on_startup_page/startup_urls_page_browser_proxy.html"> |
| 7 <link rel="import" href="/settings_action_menu.html"> |
| 7 <link rel="import" href="/settings_shared_css.html"> | 8 <link rel="import" href="/settings_shared_css.html"> |
| 8 | 9 |
| 9 <dom-module id="settings-startup-url-entry"> | 10 <dom-module id="settings-startup-url-entry"> |
| 10 <template> | 11 <template> |
| 11 <style include="settings-shared"> | 12 <style include="settings-shared"> |
| 12 .hide-overflow { | 13 .hide-overflow { |
| 13 overflow: hidden; | 14 overflow: hidden; |
| 14 } | 15 } |
| 15 </style> | 16 </style> |
| 16 <div class="list-item"> | 17 <div class="list-item"> |
| 17 <div class="favicon-image" | 18 <div class="favicon-image" |
| 18 style="background-image: [[getIconSet_(model.url)]]"> | 19 style="background-image: [[getIconSet_(model.url)]]"> |
| 19 </div> | 20 </div> |
| 20 <div class="middle hide-overflow"> | 21 <div class="middle hide-overflow"> |
| 21 <div class="text-elide">[[model.title]]</div> | 22 <div class="text-elide">[[model.title]]</div> |
| 22 <div class="text-elide secondary">[[model.url]]</div> | 23 <div class="text-elide secondary">[[model.url]]</div> |
| 23 </div> | 24 </div> |
| 24 <paper-icon-button id="dots" icon="cr:more-vert" toggles | 25 <paper-icon-button id="dots" icon="cr:more-vert" tabindex$="[[tabindex]]" |
| 25 active="{{menuOpened}}" tabindex$="[[tabindex]]"> | 26 on-tap="onDotsTap_"> |
| 26 </paper-icon-button> | 27 </paper-icon-button> |
| 27 <template is="dom-if" if="[[menuOpened]]"> | 28 <template is="cr-lazy-render" id="menu"> |
| 28 <iron-dropdown vertical-align="auto" horizontal-align="right" | 29 <dialog is="settings-action-menu"> |
| 29 opened="{{menuOpened}}"> | 30 <button class="dropdown-item" role="option" on-tap="onEditTap_"> |
| 30 <div class="dropdown-content"> | 31 $i18n{onStartupEdit} |
| 31 <button class="dropdown-item" role="option" on-tap="onEditTap_"> | 32 </button> |
| 32 $i18n{onStartupEdit} | 33 <button class="dropdown-item" role="option" id="remove" |
| 33 </button> | 34 on-tap="onRemoveTap_"> |
| 34 <button class="dropdown-item" role="option" id="remove" | 35 $i18n{onStartupRemove} |
| 35 on-tap="onRemoveTap_"> | 36 </button> |
| 36 $i18n{onStartupRemove} | 37 </dialog> |
| 37 </button> | |
| 38 </div> | |
| 39 </iron-dropdown> | |
| 40 </template> | 38 </template> |
| 41 </div> | 39 </div> |
| 42 </template> | 40 </template> |
| 43 <script src="startup_url_entry.js"></script> | 41 <script src="startup_url_entry.js"></script> |
| 44 </dom-module> | 42 </dom-module> |
| OLD | NEW |