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

Side by Side Diff: chrome/browser/resources/local_ntp/local_ntp.js

Issue 1061163003: [New Tab Page] Reset default parameters for NTP title.html, adding param for multiline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adapting style to local file. Created 5 years, 8 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 5
6 /** 6 /**
7 * @fileoverview The local InstantExtended NTP. 7 * @fileoverview The local InstantExtended NTP.
8 */ 8 */
9 9
10 10
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 var params = [ 630 var params = [
631 'rid=' + encodeURIComponent(rid), 631 'rid=' + encodeURIComponent(rid),
632 'f=' + encodeURIComponent(NTP_DESIGN.fontFamily), 632 'f=' + encodeURIComponent(NTP_DESIGN.fontFamily),
633 'fs=' + encodeURIComponent(NTP_DESIGN.fontSize), 633 'fs=' + encodeURIComponent(NTP_DESIGN.fontSize),
634 'c=' + encodeURIComponent(titleColor), 634 'c=' + encodeURIComponent(titleColor),
635 'pos=' + encodeURIComponent(position)]; 635 'pos=' + encodeURIComponent(position)];
636 if (NTP_DESIGN.titleTextAlign) 636 if (NTP_DESIGN.titleTextAlign)
637 params.push('ta=' + encodeURIComponent(NTP_DESIGN.titleTextAlign)); 637 params.push('ta=' + encodeURIComponent(NTP_DESIGN.titleTextAlign));
638 if (NTP_DESIGN.titleTextFade) 638 if (NTP_DESIGN.titleTextFade)
639 params.push('tf=' + encodeURIComponent(NTP_DESIGN.titleTextFade)); 639 params.push('tf=' + encodeURIComponent(NTP_DESIGN.titleTextFade));
640 if (NTP_DESIGN.numTitleLines > 1)
641 params.push('ntl=' + NTP_DESIGN.numTitleLines);
640 return url + '?' + params.join('&'); 642 return url + '?' + params.join('&');
641 } 643 }
642 644
643 645
644 /** 646 /**
645 * Builds a URL to display a most visited tile thumbnail in an iframe. 647 * Builds a URL to display a most visited tile thumbnail in an iframe.
646 * @param {number} rid The restricted ID. 648 * @param {number} rid The restricted ID.
647 * @param {number} position The position of the iframe in the UI. 649 * @param {number} position The position of the iframe in the UI.
648 * @return {string} An URL to display the most visited thumbnail in an iframe. 650 * @return {string} An URL to display the most visited thumbnail in an iframe.
649 */ 651 */
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 1232
1231 return { 1233 return {
1232 init: init, 1234 init: init,
1233 listen: listen 1235 listen: listen
1234 }; 1236 };
1235 } 1237 }
1236 1238
1237 if (!window.localNTPUnitTest) { 1239 if (!window.localNTPUnitTest) {
1238 LocalNTP().listen(); 1240 LocalNTP().listen();
1239 } 1241 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698