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

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

Issue 2203683002: MD History: Convert synced device collapse icon to a button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll apse.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
7 <link rel="import" href="chrome://resources/html/icon.html"> 7 <link rel="import" href="chrome://resources/html/icon.html">
8 <link rel="import" href="chrome://history/browser_service.html"> 8 <link rel="import" href="chrome://history/browser_service.html">
9 <link rel="import" href="chrome://history/constants.html"> 9 <link rel="import" href="chrome://history/constants.html">
10 <link rel="import" href="chrome://history/searched_label.html"> 10 <link rel="import" href="chrome://history/searched_label.html">
11 <link rel="import" href="chrome://history/shared_style.html"> 11 <link rel="import" href="chrome://history/shared_style.html">
12 12
13 <dom-module id="history-synced-device-card"> 13 <dom-module id="history-synced-device-card">
14 <template> 14 <template>
15 <style include="shared-style"> 15 <style include="shared-style">
16 :host { 16 :host {
(...skipping 18 matching lines...) Expand all
35 #open-tabs { 35 #open-tabs {
36 -webkit-margin-start: 20px; 36 -webkit-margin-start: 20px;
37 color: rgb(102, 136, 238); 37 color: rgb(102, 136, 238);
38 cursor: pointer; 38 cursor: pointer;
39 } 39 }
40 40
41 #last-update-time { 41 #last-update-time {
42 color: var(--secondary-text-color); 42 color: var(--secondary-text-color);
43 } 43 }
44 44
45 #dropdown-indicator { 45 .card-title .icon-button {
46 -webkit-margin-end: 12px; 46 -webkit-margin-end: 4px;
47 color: var(--secondary-text-color);
48 height: 20px;
49 width: 20px;
50 } 47 }
51 48
52 #collapse { 49 #collapse {
53 border-bottom: 1px solid var(--card-border-color); 50 border-bottom: 1px solid var(--card-border-color);
54 overflow: hidden; 51 overflow: hidden;
55 } 52 }
56 53
57 #history-item-container { 54 #history-item-container {
58 background: #fff; 55 background: #fff;
59 border: 1px solid var(--card-border-color); 56 border: 1px solid var(--card-border-color);
(...skipping 13 matching lines...) Expand all
73 width: 80%; 70 width: 80%;
74 } 71 }
75 </style> 72 </style>
76 <div id="history-item-container"> 73 <div id="history-item-container">
77 <div class="card-title" id="card-heading" aria-expanded$="[[cardOpen_]]" 74 <div class="card-title" id="card-heading" aria-expanded$="[[cardOpen_]]"
78 aria-controls="collapse" on-tap="toggleTabCard"> 75 aria-controls="collapse" on-tap="toggleTabCard">
79 <div> 76 <div>
80 [[device]] 77 [[device]]
81 <span id="last-update-time">[[lastUpdateTime]]</span> 78 <span id="last-update-time">[[lastUpdateTime]]</span>
82 </div> 79 </div>
83 <iron-icon icon="cr:expand-less" id="dropdown-indicator"></iron-icon> 80 <button is="paper-icon-button-light" class="icon-button"
81 title$="[[getCollapseTitle_(cardOpen_)]]">
82 <iron-icon icon="cr:expand-less" id="dropdown-indicator">
83 </iron-icon>
84 </button>
84 </div> 85 </div>
85 86
86 <iron-collapse opened="{{cardOpen_}}" id="collapse"> 87 <iron-collapse opened="{{cardOpen_}}" id="collapse">
87 <div id="tab-item-list"> 88 <div id="tab-item-list">
88 <template is="dom-repeat" items="[[tabs]]" as="tab" id="tab-list"> 89 <template is="dom-repeat" items="[[tabs]]" as="tab" id="tab-list">
89 <div id="item-container"> 90 <div id="item-container">
90 <div id="icon" class="website-icon"></div> 91 <div id="icon" class="website-icon"></div>
91 <a href="[[tab.url]]" class="website-title" title="[[tab.title]]" 92 <a href="[[tab.url]]" class="website-title" title="[[tab.title]]"
92 on-tap="openTab_"> 93 on-tap="openTab_">
93 <history-searched-label title="[[tab.title]]" 94 <history-searched-label title="[[tab.title]]"
94 search-term="[[searchTerm]]"></history-searched-label> 95 search-term="[[searchTerm]]"></history-searched-label>
95 </a> 96 </a>
96 </div> 97 </div>
97 <div id="window-separator" 98 <div id="window-separator"
98 hidden$="[[!isWindowSeparatorIndex_(index, separatorIndexes)]]"> 99 hidden$="[[!isWindowSeparatorIndex_(index, separatorIndexes)]]">
99 </div> 100 </div>
100 </template> 101 </template>
101 <div class="item-container"> 102 <div class="item-container">
102 <p on-tap="openAllTabs_" id="open-tabs">$i18n{openAll}</p> 103 <p on-tap="openAllTabs_" id="open-tabs">$i18n{openAll}</p>
103 </div> 104 </div>
104 </div> 105 </div>
105 </iron-collapse> 106 </iron-collapse>
106 </div> 107 </div>
107 </template> 108 </template>
108 <script src="chrome://history/synced_device_card.js"></script> 109 <script src="chrome://history/synced_device_card.js"></script>
109 </dom-module> 110 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/shared_style.html ('k') | chrome/browser/resources/md_history/synced_device_card.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698