OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 <link rel="import" href="chrome://resources/html/action_link.html"> | 2 <link rel="import" href="chrome://resources/html/action_link.html"> |
3 <link rel="import" href="chrome://resources/html/action_link_css.html"> | 3 <link rel="import" href="chrome://resources/html/action_link_css.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> |
6 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 6 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
7 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h
tml"> | 7 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h
tml"> |
8 <link rel="import" href="../controls/extension_controlled_indicator.html"> | 8 <link rel="import" href="../controls/extension_controlled_indicator.html"> |
9 <link rel="import" href="../settings_shared_css.html"> | 9 <link rel="import" href="../settings_shared_css.html"> |
10 <link rel="import" href="startup_url_dialog.html"> | 10 <link rel="import" href="startup_url_dialog.html"> |
11 <link rel="import" href="startup_url_entry.html"> | 11 <link rel="import" href="startup_url_entry.html"> |
12 <link rel="import" href="startup_urls_page_browser_proxy.html"> | 12 <link rel="import" href="startup_urls_page_browser_proxy.html"> |
13 | 13 |
14 <dom-module id="settings-startup-urls-page"> | 14 <dom-module id="settings-startup-urls-page"> |
15 <template> | 15 <template> |
16 <style include="settings-shared action-link"> | 16 <style include="settings-shared action-link iron-flex"> |
17 #outer { | 17 #outer { |
18 @apply(--settings-list-frame-padding); | 18 @apply(--settings-list-frame-padding); |
19 max-height: 395px; /** Enough height to show six entries. */ | 19 max-height: 395px; /** Enough height to show six entries. */ |
20 } | 20 } |
21 | 21 |
22 #container iron-list > settings-startup-url-entry:not(:first-of-type) { | 22 #container iron-list > settings-startup-url-entry:not(:first-of-type) { |
23 border-top: var(--settings-separator-line); | 23 border-top: var(--settings-separator-line); |
24 } | 24 } |
25 | 25 |
26 #container settings-startup-url-entry { | 26 #container settings-startup-url-entry { |
27 cursor: default; | 27 cursor: default; |
28 } | 28 } |
29 </style> | 29 </style> |
30 <div id="outer" class="layout vertical flex vertical-list"> | 30 <div id="outer" class="layout vertical flex vertical-list"> |
31 <div id="container" class="scroll-container flex" scrollable> | 31 <div id="container" class="scroll-container" scrollable> |
32 <iron-list items="[[startupPages_]]" scroll-target="container"> | 32 <iron-list items="[[startupPages_]]" scroll-target="container"> |
33 <template> | 33 <template> |
34 <settings-startup-url-entry model="[[item]]" | 34 <settings-startup-url-entry model="[[item]]" |
35 tabindex$="[[tabIndex]]" iron-list-tab-index="[[tabIndex]]" | 35 tabindex$="[[tabIndex]]" iron-list-tab-index="[[tabIndex]]" |
36 last-focused="{{lastFocused_}}" | 36 last-focused="{{lastFocused_}}" |
37 editable="[[!prefs.session.startup_urls.controlledBy]]"> | 37 editable="[[!prefs.session.startup_urls.controlledBy]]"> |
38 </settings-startup-url-entry> | 38 </settings-startup-url-entry> |
39 </template> | 39 </template> |
40 </iron-list> | 40 </iron-list> |
41 </div> | 41 </div> |
(...skipping 22 matching lines...) Expand all Loading... |
64 </template> | 64 </template> |
65 </div> | 65 </div> |
66 <template is="dom-if" if="[[showStartupUrlDialog_]]" restamp> | 66 <template is="dom-if" if="[[showStartupUrlDialog_]]" restamp> |
67 <settings-startup-url-dialog model="[[startupUrlDialogModel_]]" | 67 <settings-startup-url-dialog model="[[startupUrlDialogModel_]]" |
68 on-close="destroyUrlDialog_"> | 68 on-close="destroyUrlDialog_"> |
69 </settings-startup-url-dialog> | 69 </settings-startup-url-dialog> |
70 </template> | 70 </template> |
71 </template> | 71 </template> |
72 <script src="startup_urls_page.js"></script> | 72 <script src="startup_urls_page.js"></script> |
73 </dom-module> | 73 </dom-module> |
OLD | NEW |