OLD | NEW |
1 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action
_menu.html"> |
2 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r
ender.html"> |
3 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 3 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
4 <link rel="import" href="chrome://resources/html/polymer.html"> | 4 <link rel="import" href="chrome://resources/html/polymer.html"> |
5 <link rel="import" href="chrome://resources/html/icon.html"> | 5 <link rel="import" href="chrome://resources/html/icon.html"> |
6 <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-icon-button/paper
-icon-button.html"> |
7 <link rel="import" href="startup_urls_page_browser_proxy.html"> | 7 <link rel="import" href="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 .hide-overflow { | 13 .hide-overflow { |
14 overflow: hidden; | 14 overflow: hidden; |
15 } | 15 } |
16 </style> | 16 </style> |
17 <div class="list-item"> | 17 <div class="list-item"> |
18 <div class="favicon-image" | 18 <div class="favicon-image" |
19 style="background-image: [[getIconSet_(model.url)]]"> | 19 style="background-image: [[getIconSet_(model.url)]]"> |
20 </div> | 20 </div> |
21 <div class="middle hide-overflow"> | 21 <div class="middle hide-overflow"> |
22 <div class="text-elide">[[model.title]]</div> | 22 <div class="text-elide">[[model.title]]</div> |
23 <div class="text-elide secondary">[[model.url]]</div> | 23 <div class="text-elide secondary">[[model.url]]</div> |
24 </div> | 24 </div> |
25 <template is="dom-if" if="[[editable]]"> | 25 <template is="dom-if" if="[[editable]]"> |
26 <paper-icon-button id="dots" icon="cr:more-vert" | 26 <paper-icon-button id="dots" icon="cr:more-vert" |
27 tabindex$="[[tabindex]]" on-tap="onDotsTap_"> | 27 tabindex$="[[tabindex]]" on-tap="onDotsTap_" |
| 28 title="$i18n{moreActions}"> |
28 </paper-icon-button> | 29 </paper-icon-button> |
29 <template is="cr-lazy-render" id="menu"> | 30 <template is="cr-lazy-render" id="menu"> |
30 <dialog is="cr-action-menu"> | 31 <dialog is="cr-action-menu"> |
31 <button class="dropdown-item" role="option" on-tap="onEditTap_"> | 32 <button class="dropdown-item" role="option" on-tap="onEditTap_"> |
32 $i18n{edit} | 33 $i18n{edit} |
33 </button> | 34 </button> |
34 <button class="dropdown-item" role="option" id="remove" | 35 <button class="dropdown-item" role="option" id="remove" |
35 on-tap="onRemoveTap_"> | 36 on-tap="onRemoveTap_"> |
36 $i18n{onStartupRemove} | 37 $i18n{onStartupRemove} |
37 </button> | 38 </button> |
38 </dialog> | 39 </dialog> |
39 </template> | 40 </template> |
40 </template> | 41 </template> |
41 </div> | 42 </div> |
42 </template> | 43 </template> |
43 <script src="startup_url_entry.js"></script> | 44 <script src="startup_url_entry.js"></script> |
44 </dom-module> | 45 </dom-module> |
OLD | NEW |