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

Side by Side Diff: chrome/browser/resources/md_history/synced_device_manager.html

Issue 2077473002: MD History: add sign in promo in synced tabs when user isn't logged in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months 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/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 }
62
17 </style> 63 </style>
18 <template is="dom-repeat" items="[[syncedDevices_]]" as="syncedDevice"> 64 <div id="synced-device-list" hidden="[[!syncedDevices_.length]]">
19 <history-synced-device-card device="[[syncedDevice.device]]" 65 <template is="dom-repeat" items="[[syncedDevices_]]" as="syncedDevice">
20 last-update-time="[[syncedDevice.lastUpdateTime]]" 66 <history-synced-device-card device="[[syncedDevice.device]]"
21 tabs="[[syncedDevice.tabs]]" 67 last-update-time="[[syncedDevice.lastUpdateTime]]"
22 separator-indexes="[[syncedDevice.separatorIndexes]]" 68 tabs="[[syncedDevice.tabs]]"
23 searched-term="[[searchedTerm]]"> 69 separator-indexes="[[syncedDevice.separatorIndexes]]"
24 </history-synced-device-card> 70 searched-term="[[searchedTerm]]">
25 </template> 71 </history-synced-device-card>
72 </template>
73 </div>
74 <div id="no-synced-tabs" class="centered-message"
75 hidden="[[!showNoSyncedMessage(signInState_, syncedDevices_.length)]]">
76 [[noSyncedTabsMessage(fetchingSyncedTabs_)]]
77 </div>
78 <div id="sign-in-guide" hidden$="[[signInState_]]">
79 <div id="illustration"></div>
80 <div id="sign-in-promo">$i18n{signInPromo}</div>
81 <div id="sign-in-promo-desc">$i18n{signInPromoDesc}</div>
82 <paper-button id="sign-in-button" on-tap="onSignInTap_">
83 $i18n{signInButton}
tsergeant 2016/06/21 04:33:50 Nit: Deindent this so it's 2 spaces in from the pa
lshang 2016/06/21 05:40:00 Done.
84 </paper-button>
85 </div>
26 </template> 86 </template>
27 <script src="chrome://history/synced_device_manager.js"></script> 87 <script src="chrome://history/synced_device_manager.js"></script>
28 </dom-module> 88 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698