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

Unified Diff: chrome/browser/resources/local_ntp/local_ntp_design.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/local_ntp/local_ntp_design.js
diff --git a/chrome/browser/resources/local_ntp/local_ntp_design.js b/chrome/browser/resources/local_ntp/local_ntp_design.js
index 613051cfe1dd9cae175bf15212a6cc4aff86abab..5c0bb021a135ccc052a7fb4729b1dc3658f8bb2b 100644
--- a/chrome/browser/resources/local_ntp/local_ntp_design.js
+++ b/chrome/browser/resources/local_ntp/local_ntp_design.js
@@ -20,6 +20,7 @@
* fontFamily: Font family to use for title and thumbnail iframes.
* fontSize: Font size to use for the iframes, in px.
* mainClass: Class applied to #ntp-contents to control CSS.
+ * numTitleLines: Number of lines to display in titles.
* showFavicon: Whether to show favicon.
* thumbnailTextColor: The 4-component color that thumbnail iframe may use to
* display text message in place of missing thumbnail.
@@ -41,6 +42,7 @@
* fontFamily: string,
* fontSize: number,
* mainClass: string,
+ * numTitleLines: number,
* showFavicon: boolean,
* thumbnailTextColor: string,
* thumbnailFallback: string|null|undefined,
@@ -57,6 +59,7 @@ var NTP_DESIGN = {
fontFamily: 'arial, sans-serif',
fontSize: 12,
mainClass: 'thumb-ntp',
+ numTitleLines: 1,
showFavicon: true,
thumbnailTextColor: [50, 50, 50, 255],
thumbnailFallback: THUMBNAIL_FALLBACK.DOT,
@@ -75,6 +78,7 @@ var NTP_DESIGN = {
function modifyNtpDesignForIcons() {
NTP_DESIGN.fakeboxWingSize = 132;
NTP_DESIGN.mainClass = 'icon-ntp';
+ NTP_DESIGN.numTitleLines = 2;
NTP_DESIGN.showFavicon = false;
NTP_DESIGN.thumbnailFallback = null;
NTP_DESIGN.tileWidth = 48 + 2 * 18;

Powered by Google App Engine
This is Rietveld 408576698