Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: chrome/browser/resources/settings/on_startup_page/startup_url_entry.html

Issue 2520573002: MD Settings: implement support for extension-controlled startup URLs (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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="/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 .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 <paper-icon-button id="dots" icon="cr:more-vert" tabindex$="[[tabindex]]" 25 <template is="dom-if" if="[[editable]]">
dpapad 2016/11/18 23:46:28 Can you add a test checking that a non editable en
Dan Beam 2016/11/18 23:51:04 yes (this is exactly the thing I planned on testin
26 on-tap="onDotsTap_"> 26 <paper-icon-button id="dots" icon="cr:more-vert"
27 </paper-icon-button> 27 tabindex$="[[tabindex]]" on-tap="onDotsTap_">
28 <template is="cr-lazy-render" id="menu"> 28 </paper-icon-button>
29 <dialog is="cr-action-menu"> 29 <template is="cr-lazy-render" id="menu">
30 <button class="dropdown-item" role="option" on-tap="onEditTap_"> 30 <dialog is="cr-action-menu">
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 </dialog>
39 </template>
38 </template> 40 </template>
39 </div> 41 </div>
40 </template> 42 </template>
41 <script src="startup_url_entry.js"></script> 43 <script src="startup_url_entry.js"></script>
42 </dom-module> 44 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698