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

Side by Side Diff: chrome/browser/resources/ntp4/most_visited_page.js

Issue 8746007: ntp string cleanse (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('ntp4', function() { 5 cr.define('ntp4', function() {
6 'use strict'; 6 'use strict';
7 7
8 var TilePage = ntp4.TilePage; 8 var TilePage = ntp4.TilePage;
9 9
10 /** 10 /**
11 * A counter for generating unique tile IDs.
11 */ 12 */
12 var tileID = 0; 13 var tileID = 0;
13 14
14 /** 15 /**
15 * Creates a new Most Visited object for tiling. 16 * Creates a new Most Visited object for tiling.
16 * @constructor 17 * @constructor
17 * @extends {HTMLAnchorElement} 18 * @extends {HTMLAnchorElement}
18 */ 19 */
19 function MostVisited() { 20 function MostVisited() {
20 var el = cr.doc.createElement('a'); 21 var el = cr.doc.createElement('a');
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 '<div class="close-button"></div>' + 55 '<div class="close-button"></div>' +
55 '<span class="thumbnail fills-parent">' + 56 '<span class="thumbnail fills-parent">' +
56 // thumbnail-shield provides a gradient fade effect. 57 // thumbnail-shield provides a gradient fade effect.
57 '<div class="thumbnail-shield fills-parent"></div>' + 58 '<div class="thumbnail-shield fills-parent"></div>' +
58 '</span>' + 59 '</span>' +
59 '<span class="favicon"></span>' + 60 '<span class="favicon"></span>' +
60 '</span>' + 61 '</span>' +
61 '<div class="color-stripe"></div>' + 62 '<div class="color-stripe"></div>' +
62 '<span class="title"></span>'; 63 '<span class="title"></span>';
63 64
65 this.querySelector('.close-button').title =
66 templateData.removethumbnailtooltip;
Rick Byers 2011/11/30 15:16:07 Nit: This seems mostly unrelated to the string rem
Evan Stade 2011/11/30 22:47:25 Done.
67
64 this.tabIndex = -1; 68 this.tabIndex = -1;
65 this.data_ = null; 69 this.data_ = null;
66 this.removeAttribute('id'); 70 this.removeAttribute('id');
67 this.title = ''; 71 this.title = '';
68 }, 72 },
69 73
70 /** 74 /**
71 * Update the appearance of this tile according to |data|. 75 * Update the appearance of this tile according to |data|.
72 * @param {Object} data A dictionary of relevant data for the page. 76 * @param {Object} data A dictionary of relevant data for the page.
73 */ 77 */
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 } 417 }
414 418
415 return oldData; 419 return oldData;
416 }; 420 };
417 421
418 return { 422 return {
419 MostVisitedPage: MostVisitedPage, 423 MostVisitedPage: MostVisitedPage,
420 refreshData: refreshData, 424 refreshData: refreshData,
421 }; 425 };
422 }); 426 });
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698