| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 | 2 |
| 3 <link rel="import" href="chrome://resources/html/action_link.html"> | 3 <link rel="import" href="chrome://resources/html/action_link.html"> |
| 4 <link rel="import" href="chrome://resources/html/action_link_css.html"> | 4 <link rel="import" href="chrome://resources/html/action_link_css.html"> |
| 5 <link rel="import" href="chrome://resources/html/assert.html"> | 5 <link rel="import" href="chrome://resources/html/assert.html"> |
| 6 <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> | 6 <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> |
| 9 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 9 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 10 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h
tml"> | 10 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h
tml"> |
| 11 <link rel="import" href="../controls/extension_controlled_indicator.html"> | 11 <link rel="import" href="../controls/extension_controlled_indicator.html"> |
| 12 <link rel="import" href="../settings_shared_css.html"> | 12 <link rel="import" href="../settings_shared_css.html"> |
| 13 <link rel="import" href="startup_url_dialog.html"> | 13 <link rel="import" href="startup_url_dialog.html"> |
| 14 <link rel="import" href="startup_url_entry.html"> | 14 <link rel="import" href="startup_url_entry.html"> |
| 15 <link rel="import" href="startup_urls_page_browser_proxy.html"> | 15 <link rel="import" href="startup_urls_page_browser_proxy.html"> |
| 16 | 16 |
| 17 <dom-module id="settings-startup-urls-page"> | 17 <dom-module id="settings-startup-urls-page"> |
| 18 <template> | 18 <template> |
| 19 <style include="settings-shared action-link iron-flex"> | 19 <style include="settings-shared action-link iron-flex"> |
| 20 #outer { | 20 #container { |
| 21 @apply(--settings-list-frame-padding); | 21 @apply(--settings-list-frame-padding); |
| 22 max-height: 395px; /** Enough height to show six entries. */ | 22 /* Show up to six rows before limiting the height and using a scroll |
| 23 } | 23 * bar. */ |
| 24 | 24 max-height: calc((var(--settings-row-two-line-min-height) + |
| 25 #container iron-list > settings-startup-url-entry:not(:first-of-type) { | 25 var(--settings-separator-height)) * 6); |
| 26 border-top: var(--settings-separator-line); | |
| 27 } | 26 } |
| 28 | 27 |
| 29 #container settings-startup-url-entry { | 28 #container settings-startup-url-entry { |
| 29 border-bottom: var(--settings-separator-line); |
| 30 cursor: default; | 30 cursor: default; |
| 31 } | 31 } |
| 32 </style> | 32 </style> |
| 33 <div id="outer" class="layout vertical flex vertical-list"> | 33 <div id="container" class="scroll-container" scrollable> |
| 34 <div id="container" class="scroll-container" scrollable> | 34 <iron-list items="[[startupPages_]]" scroll-target="container"> |
| 35 <iron-list items="[[startupPages_]]" scroll-target="container"> | 35 <template> |
| 36 <template> | 36 <settings-startup-url-entry model="[[item]]" |
| 37 <settings-startup-url-entry model="[[item]]" | 37 tabindex$="[[tabIndex]]" iron-list-tab-index="[[tabIndex]]" |
| 38 tabindex$="[[tabIndex]]" iron-list-tab-index="[[tabIndex]]" | 38 last-focused="{{lastFocused_}}" |
| 39 last-focused="{{lastFocused_}}" | 39 editable="[[!prefs.session.startup_urls.controlledBy]]"> |
| 40 editable="[[!prefs.session.startup_urls.controlledBy]]"> | 40 </settings-startup-url-entry> |
| 41 </settings-startup-url-entry> | 41 </template> |
| 42 </template> | 42 </iron-list> |
| 43 </iron-list> | 43 </div> |
| 44 </div> | 44 <div class="list-frame vertical-list"> |
| 45 <template is="dom-if" if="[[!prefs.session.startup_urls.controlledBy]]" | 45 <template is="dom-if" if="[[!prefs.session.startup_urls.controlledBy]]" |
| 46 restamp> | 46 restamp> |
| 47 <div class="list-item" id="addPage"> | 47 <div class="list-item" id="addPage"> |
| 48 <a is="action-link" class="list-button" on-tap="onAddPageTap_"> | 48 <a is="action-link" class="list-button" on-tap="onAddPageTap_"> |
| 49 $i18n{onStartupAddNewPage} | 49 $i18n{onStartupAddNewPage} |
| 50 </a> | 50 </a> |
| 51 </div> | 51 </div> |
| 52 <div class="list-item" id="useCurrentPages"> | 52 <div class="list-item" id="useCurrentPages"> |
| 53 <a is="action-link" class="list-button" | 53 <a is="action-link" class="list-button" |
| 54 on-tap="onUseCurrentPagesTap_"> | 54 on-tap="onUseCurrentPagesTap_"> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 67 </template> | 67 </template> |
| 68 </div> | 68 </div> |
| 69 <template is="dom-if" if="[[showStartupUrlDialog_]]" restamp> | 69 <template is="dom-if" if="[[showStartupUrlDialog_]]" restamp> |
| 70 <settings-startup-url-dialog model="[[startupUrlDialogModel_]]" | 70 <settings-startup-url-dialog model="[[startupUrlDialogModel_]]" |
| 71 on-close="destroyUrlDialog_"> | 71 on-close="destroyUrlDialog_"> |
| 72 </settings-startup-url-dialog> | 72 </settings-startup-url-dialog> |
| 73 </template> | 73 </template> |
| 74 </template> | 74 </template> |
| 75 <script src="startup_urls_page.js"></script> | 75 <script src="startup_urls_page.js"></script> |
| 76 </dom-module> | 76 </dom-module> |
| OLD | NEW |