Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/html/icon.html"> | 3 <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"> | 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="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h tml"> |
| 7 <link rel="import" href="/on_startup_page/startup_urls_page_browser_proxy.html"> | 7 <link rel="import" href="/on_startup_page/startup_urls_page_browser_proxy.html"> |
| 8 <link rel="import" href="/settings_shared_css.html"> | 8 <link rel="import" href="/settings_shared_css.html"> |
| 9 | 9 |
| 10 <dom-module id="settings-startup-url-entry"> | 10 <dom-module id="settings-startup-url-entry"> |
| 11 <template> | 11 <template> |
| 12 <style include="settings-shared"> | 12 <style include="settings-shared"> |
| 13 .dropdown-content { | 13 .dropdown-content { |
| 14 background: white; | 14 background: white; |
| 15 box-shadow: 0 2px 6px grey; | 15 box-shadow: 0 2px 6px grey; |
| 16 } | 16 } |
| 17 | 17 |
| 18 .hide-overflow { | |
| 19 overflow: hidden; | |
| 20 } | |
| 21 | |
| 18 paper-item:hover { | 22 paper-item:hover { |
| 19 background-color: var(--settings-hover-color); | 23 background-color: var(--settings-hover-color); |
| 20 } | 24 } |
| 21 </style> | 25 </style> |
| 22 <div class="list-item underbar"> | 26 <div class="list-item underbar"> |
| 23 <div class="favicon-image" | 27 <div class="favicon-image" |
| 24 style="background-image: [[getIconSet_(model.url)]]"> | 28 style="background-image: [[getIconSet_(model.url)]]"> |
| 25 </div> | 29 </div> |
| 26 <div class="middle"> | 30 <div class="middle hide-overflow"> |
|
michaelpg
2016/06/13 16:01:57
[Why] is this the only place this is necessary?
dschuyler
2016/06/13 19:25:19
I'd like to start here and expand as necessary.
I'
| |
| 27 <div class="text-elide">[[model.title]]</div> | 31 <div class="text-elide">[[model.title]]</div> |
| 28 <div class="text-elide secondary">[[model.url]]</div> | 32 <div class="text-elide secondary">[[model.url]]</div> |
| 29 </div> | 33 </div> |
| 30 <paper-icon-button id="dots" icon="cr:more-vert" toggles | 34 <paper-icon-button id="dots" icon="cr:more-vert" toggles |
| 31 active="{{menuOpened}}"></paper-icon-button> | 35 active="{{menuOpened}}"></paper-icon-button> |
| 32 <template is="dom-if" if="[[menuOpened]]"> | 36 <template is="dom-if" if="[[menuOpened]]"> |
| 33 <iron-dropdown vertical-align="top" horizontal-align="right" | 37 <iron-dropdown vertical-align="top" horizontal-align="right" |
| 34 opened="{{menuOpened}}"> | 38 opened="{{menuOpened}}"> |
| 35 <div class="dropdown-content"> | 39 <div class="dropdown-content"> |
| 36 <paper-item on-tap="onEditTap_">$i18n{onStartupEdit}</paper-item> | 40 <paper-item on-tap="onEditTap_">$i18n{onStartupEdit}</paper-item> |
| 37 <paper-item id="remove" on-tap="onRemoveTap_"> | 41 <paper-item id="remove" on-tap="onRemoveTap_"> |
| 38 $i18n{onStartupRemove} | 42 $i18n{onStartupRemove} |
| 39 </paper-item> | 43 </paper-item> |
| 40 </div> | 44 </div> |
| 41 </iron-dropdown> | 45 </iron-dropdown> |
| 42 </template> | 46 </template> |
| 43 </div> | 47 </div> |
| 44 </template> | 48 </template> |
| 45 <script src="startup_url_entry.js"></script> | 49 <script src="startup_url_entry.js"></script> |
| 46 </dom-module> | 50 </dom-module> |
| OLD | NEW |