extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js
/**
   * Sends a response to the window which requested a resize.
   * @param {boolean} success
   * @param {number} requestedWidth
   * @param {number} requestedHeight
   * @param {!Window} source
   * @param {string} origin
   * @private
   */
Sends a response to the window which requested a resize.
Sends a response to the window which requested a resize .
sendEmbedSizeResponse_(success, requestedWidth, requestedHeight, source,
      origin) {
    if (!this.iframe) {
      return;
    }
    postMessageToWindows(
        this.iframe,
        [{win: source, origin}],
        success ? 'embed-size-changed' : 'embed-size-denied',
        dict({
          'requestedWidth': requestedWidth,
          'requestedHeight': requestedHeight,
        }),
        true);
  }
sendEmbedSizeResponse_ ( success , requestedWidth , requestedHeight , source , origin ) { if ( ! this . iframe ) { return ; } postMessageToWindows ( this . iframe , [ { win : source , origin } ] , success ? 'embed-size-changed' : 'embed-size-denied' , dict ( { 'requestedWidth' : requestedWidth , 'requestedHeight' : requestedHeight , } ) , true ) ; }
Sends a response to the window which requested a resize.
Sends a response to the window which requested a resize .
// The iframe may have been removed by the time we resize.