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

Side by Side Diff: chrome/browser/resources/md_bookmarks/item.js

Issue 2603303002: [MD Bookmarks] Add UI for Material Bookmarks. (Closed)
Patch Set: change TODO position Created 3 years, 11 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 Polymer({
6 is: 'bookmarks-item',
7
8 properties: {
9 /** @type {BookmarkTreeNode} */
10 item: {
11 type: Object,
12 observer: 'onItemChanged_'
13 },
14
15 isFolder_: Boolean,
16 },
17
18 observers: [
19 'updateFavicon_(item.url)'
20 ],
21
22 /**
23 * @param {Event} e
24 * @private
25 */
26 onMenuButtonOpenTap_: function(e) {
27 this.fire('toggle-menu', {
28 target: e.target
29 });
30 },
31
32 /** @private */
33 onItemChanged_: function() {
34 this.isFolder_ = !(this.item.url);
35 },
36
37 /** @private */
38 updateFavicon_: function(url) {
39 this.$.icon.style.backgroundImage = cr.icon.getFavicon(url);
40 }
41 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/item.html ('k') | chrome/browser/resources/md_bookmarks/list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698