| 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/polymer/v1_0/iron-list/iron-list.htm
l"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h
tml"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-menu/paper-menu.h
tml"> |
| 5 <link rel="import" href="chrome://resources/html/cr/ui/position_util.html"> | 6 <link rel="import" href="chrome://resources/html/cr/ui/position_util.html"> |
| 6 <link rel="import" href="chrome://history/shared_style.html"> | 7 <link rel="import" href="chrome://history/shared_style.html"> |
| 7 <link rel="import" href="chrome://history/synced_device_card.html"> | 8 <link rel="import" href="chrome://history/synced_device_card.html"> |
| 8 | 9 |
| 9 <dom-module id="history-synced-device-manager"> | 10 <dom-module id="history-synced-device-manager"> |
| 10 <style include="shared-style"></style> | 11 <style include="shared-style"></style> |
| 11 <template> | 12 <template> |
| 12 <style> | 13 <style> |
| 13 :host { | 14 :host { |
| 14 overflow: auto; | 15 overflow: auto; |
| 16 } |
| 17 |
| 18 #illustration { |
| 19 background: -webkit-image-set( |
| 20 url(chrome://history/images/100/sign_in_promo.png) 1x, |
| 21 url(chrome://history/images/200/sign_in_promo.png) 2x) |
| 22 no-repeat center center; |
| 23 height: 222px; |
| 24 margin-top: 100px; |
| 25 width: 594px; |
| 26 } |
| 27 |
| 28 #no-synced-tabs { |
| 29 height: 100%; |
| 30 } |
| 31 |
| 32 #sign-in-guide { |
| 33 align-items: center; |
| 34 display: flex; |
| 35 flex-direction: column; |
| 36 justify-content: center; |
| 37 text-align: center; |
| 38 } |
| 39 |
| 40 #sign-in-promo { |
| 41 color: #333; |
| 42 font-size: 28px; |
| 43 margin-top: 40px; |
| 44 } |
| 45 |
| 46 #sign-in-promo-desc { |
| 47 color: #848484; |
| 48 font-size: 16px; |
| 49 margin-top: 10px; |
| 50 } |
| 51 |
| 52 #sign-in-button { |
| 53 background-color: var(--google-blue-500); |
| 54 color: white; |
| 55 font-size: 14px; |
| 56 margin-top: 24px; |
| 57 } |
| 58 |
| 59 #synced-device-list { |
| 15 padding-top: var(--first-card-padding-top); | 60 padding-top: var(--first-card-padding-top); |
| 16 } | 61 } |
| 17 </style> | 62 </style> |
| 18 <template is="dom-repeat" items="[[syncedDevices_]]" as="syncedDevice"> | 63 <div id="synced-device-list" hidden="[[!syncedDevices_.length]]"> |
| 19 <history-synced-device-card device="[[syncedDevice.device]]" | 64 <template is="dom-repeat" items="[[syncedDevices_]]" as="syncedDevice"> |
| 20 last-update-time="[[syncedDevice.lastUpdateTime]]" | 65 <history-synced-device-card device="[[syncedDevice.device]]" |
| 21 tabs="[[syncedDevice.tabs]]" | 66 last-update-time="[[syncedDevice.lastUpdateTime]]" |
| 22 separator-indexes="[[syncedDevice.separatorIndexes]]" | 67 tabs="[[syncedDevice.tabs]]" |
| 23 searched-term="[[searchedTerm]]"> | 68 separator-indexes="[[syncedDevice.separatorIndexes]]" |
| 24 </history-synced-device-card> | 69 searched-term="[[searchedTerm]]"> |
| 25 </template> | 70 </history-synced-device-card> |
| 71 </template> |
| 72 </div> |
| 73 <div id="no-synced-tabs" class="centered-message" |
| 74 hidden="[[!showNoSyncedMessage(signInState_, syncedDevices_.length)]]"> |
| 75 [[noSyncedTabsMessage(fetchingSyncedTabs_)]] |
| 76 </div> |
| 77 <div id="sign-in-guide" hidden$="[[signInState_]]"> |
| 78 <div id="illustration"></div> |
| 79 <div id="sign-in-promo">$i18n{signInPromo}</div> |
| 80 <div id="sign-in-promo-desc">$i18n{signInPromoDesc}</div> |
| 81 <paper-button id="sign-in-button" on-tap="onSignInTap_"> |
| 82 $i18n{signInButton} |
| 83 </paper-button> |
| 84 </div> |
| 26 </template> | 85 </template> |
| 27 <script src="chrome://history/synced_device_manager.js"></script> | 86 <script src="chrome://history/synced_device_manager.js"></script> |
| 28 </dom-module> | 87 </dom-module> |
| OLD | NEW |