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

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

Issue 2097003002: MD History: Remove bookmark when clicking bookmark star (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add event listener to remove all bookmark stars 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/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/iron-flex-layout/iron-f lex-layout.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout.html">
4 <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">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
8 <link rel="import" href="chrome://resources/html/icon.html"> 8 <link rel="import" href="chrome://resources/html/icon.html">
9 <link rel="import" href="chrome://resources/html/util.html"> 9 <link rel="import" href="chrome://resources/html/util.html">
10 <link rel="import" href="chrome://history/constants.html"> 10 <link rel="import" href="chrome://history/constants.html">
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 #menu-button iron-icon { 105 #menu-button iron-icon {
106 height: 20px; 106 height: 20px;
107 width: 20px; 107 width: 20px;
108 } 108 }
109 109
110 #bookmark-star { 110 #bookmark-star {
111 -webkit-margin-end: 10px; 111 -webkit-margin-end: 10px;
112 -webkit-margin-start: 20px; 112 -webkit-margin-start: 20px;
113 color: rgb(68, 136, 255); 113 color: rgb(68, 136, 255);
114 height: 16px; 114 height: 32px;
115 visibility: hidden; 115 visibility: hidden;
116 width: 16px; 116 width: 32px;
117 } 117 }
118 118
119 :host([starred]) #bookmark-star { 119 :host([starred]) #bookmark-star {
120 visibility: visible; 120 visibility: visible;
121 } 121 }
122 122
123 #time-gap-separator { 123 #time-gap-separator {
124 -webkit-border-start: 1px solid #888; 124 -webkit-border-start: 1px solid #888;
125 -webkit-margin-start: 77px; 125 -webkit-margin-start: 77px;
126 height: 15px; 126 height: 15px;
127 } 127 }
128 </style> 128 </style>
129 <div id="main-container"> 129 <div id="main-container">
130 <div id="date-accessed" class="card-title"> 130 <div id="date-accessed" class="card-title">
131 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]] 131 [[cardTitle_(numberOfItems, item.dateRelativeDay, searchTerm)]]
132 </div> 132 </div>
133 <div id="item-container"> 133 <div id="item-container">
134 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_" 134 <paper-checkbox id="checkbox" on-tap="onCheckboxSelected_"
135 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]"> 135 checked="{{selected}}" disabled="[[selectionNotAllowed_()]]">
136 </paper-checkbox> 136 </paper-checkbox>
137 <span id="time-accessed">[[item.readableTimestamp]]</span> 137 <span id="time-accessed">[[item.readableTimestamp]]</span>
138 <div class="website-icon" id="icon"></div> 138 <div class="website-icon" id="icon"></div>
139 <div id="title-and-domain"> 139 <div id="title-and-domain">
140 <a href="[[item.url]]" id="title" class="website-title"> 140 <a href="[[item.url]]" id="title" class="website-title">
141 <history-searched-label title="[[item.title]]" 141 <history-searched-label title="[[item.title]]"
142 search-term="[[searchTerm]]"></history-searched-label> 142 search-term="[[searchTerm]]"></history-searched-label>
143 </a> 143 </a>
144 <span id="domain">[[item.domain]]</span> 144 <span id="domain">[[item.domain]]</span>
145 </div> 145 </div>
146 <iron-icon icon="cr:star" id="bookmark-star"></iron-icon> 146 <paper-icon-button icon="cr:star" id="bookmark-star"
tsergeant 2016/06/30 01:41:10 We use paper-icon-button-light instead of paper-ic
lshang 2016/07/01 01:15:16 Done.
147 title="$i18n{removeBookmark}" on-tap="onRemoveBookmarkTap_">
148 </paper-icon-button>
147 <button is="paper-icon-button-light" id="menu-button" 149 <button is="paper-icon-button-light" id="menu-button"
148 on-tap="onMenuButtonTap_"> 150 on-tap="onMenuButtonTap_">
149 <iron-icon icon="cr:more-vert"></iron-icon> 151 <iron-icon icon="cr:more-vert"></iron-icon>
150 </button> 152 </button>
151 </div> 153 </div>
152 <template is="dom-if" if="[[hasTimeGap]]"> 154 <template is="dom-if" if="[[hasTimeGap]]">
153 <div id="time-gap-separator"></div> 155 <div id="time-gap-separator"></div>
154 </template> 156 </template>
155 </div> 157 </div>
156 </template> 158 </template>
157 <script src="chrome://history/history_item.js"></script> 159 <script src="chrome://history/history_item.js"></script>
158 </dom-module> 160 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698