function sendThemeInfoToMostVisitedIframe() {
  var info = getThemeBackgroundInfo();
  if (!info)
    return;

  var isThemeDark = getIsThemeDark();

  var message = {cmd: 'updateTheme'};
  message.isThemeDark = isThemeDark;

  var titleColor = NTP_DESIGN.titleColor;
  if (!info.usingDefaultTheme && info.textColorRgba) {
    titleColor = info.textColorRgba;
  } else if (isThemeDark) {
    titleColor = NTP_DESIGN.titleColorAgainstDark;
  }
  message.tileTitleColor = convertToRGBAColor(titleColor);

  $(IDS.TILES_IFRAME).contentWindow.postMessage(message, '*');
}
/**
 * Sends the current theme info to the most visited iframe.
 * @private
 */
Sends the current theme info to the most visited iframe.
@private
Sends the current theme info to the most visited iframe . @private
function sendThemeInfoToMostVisitedIframe() {
  var info = getThemeBackgroundInfo();
  if (!info)
    return;
  var isThemeDark = getIsThemeDark();
  var message = {cmd: 'updateTheme'};
  message.isThemeDark = isThemeDark;
  var titleColor = NTP_DESIGN.titleColor;
  if (!info.usingDefaultTheme && info.textColorRgba) {
    titleColor = info.textColorRgba;
  } else if (isThemeDark) {
    titleColor = NTP_DESIGN.titleColorAgainstDark;
  }
  message.tileTitleColor = convertToRGBAColor(titleColor);
  $(IDS.TILES_IFRAME).contentWindow.postMessage(message, '*');
}
function sendThemeInfoToMostVisitedIframe ( ) { var info = getThemeBackgroundInfo ( ) ; if ( ! info ) return ; var isThemeDark = getIsThemeDark ( ) ; var message = { cmd : 'updateTheme' } ; message . isThemeDark = isThemeDark ; var titleColor = NTP_DESIGN . titleColor ; if ( ! info . usingDefaultTheme && info . textColorRgba ) { titleColor = info . textColorRgba ; } else if ( isThemeDark ) { titleColor = NTP_DESIGN . titleColorAgainstDark ; } message . tileTitleColor = convertToRGBAColor ( titleColor ) ; $ ( IDS . TILES_IFRAME ) . contentWindow . postMessage ( message , '*' ) ; }
Sends the current theme info to the most visited iframe.
Sends the current theme info to the most visited iframe .