addZoomEventListener(listener) {
    if (!(this.zoomBehavior_ == BrowserApi.ZoomBehavior.MANAGE ||
          this.zoomBehavior_ == BrowserApi.ZoomBehavior.PROPAGATE_PARENT))
      return;

    chrome.tabs.onZoomChange.addListener(info => {
      var zoomChangeInfo =
          /** @type {{tabId: number, newZoomFactor: number}} */ (info);
      if (zoomChangeInfo.tabId != this.streamInfo_.tabId)
        return;
      listener(zoomChangeInfo.newZoomFactor);
    });
  }
/**
   * Adds an event listener to be notified when the browser zoom changes.
   *
   * @param {!Function} listener The listener to be called with the new zoom
   *     factor.
   */
Adds an event listener to be notified when the browser zoom changes.
@param {!Function} listener The listener to be called with the new zoom
factor.
Adds an event listener to be notified when the browser zoom changes . @param { !Function } listener The listener to be called with the new zoom factor .
addZoomEventListener(listener) {
    if (!(this.zoomBehavior_ == BrowserApi.ZoomBehavior.MANAGE ||
          this.zoomBehavior_ == BrowserApi.ZoomBehavior.PROPAGATE_PARENT))
      return;
    chrome.tabs.onZoomChange.addListener(info => {
      var zoomChangeInfo =
           (info);
      if (zoomChangeInfo.tabId != this.streamInfo_.tabId)
        return;
      listener(zoomChangeInfo.newZoomFactor);
    });
  }
addZoomEventListener ( listener ) { if ( ! ( this . zoomBehavior_ == BrowserApi . ZoomBehavior . MANAGE || this . zoomBehavior_ == BrowserApi . ZoomBehavior . PROPAGATE_PARENT ) ) return ; chrome . tabs . onZoomChange . addListener ( info => { var zoomChangeInfo = ( info ) ; if ( zoomChangeInfo . tabId != this . streamInfo_ . tabId ) return ; listener ( zoomChangeInfo . newZoomFactor ) ; } ) ; }
Adds an event listener to be notified when the browser zoom changes.
Adds an event listener to be notified when the browser zoom changes .
/** @type {{tabId: number, newZoomFactor: number}} */