function DestinationSearch(
      destinationStore, invitationStore, userInfo, appState) {
    print_preview.Overlay.call(this);

    /**
     * Data store containing the destinations to search through.
     * @private {!print_preview.DestinationStore}
     */
    this.destinationStore_ = destinationStore;

    /**
     * Data store holding printer sharing invitations.
     * @private {!print_preview.InvitationStore}
     */
    this.invitationStore_ = invitationStore;

    /**
     * Event target that contains information about the logged in user.
     * @private {!print_preview.UserInfo}
     */
    this.userInfo_ = userInfo;

    /**
     * Contains recent destinations that are currently set to be persisted into
     * the sticky settings.
     * @private {!print_preview.AppState}
     */
    this.appState_ = appState;

    /**
     * Currently displayed printer sharing invitation.
     * @private {print_preview.Invitation}
     */
    this.invitation_ = null;

    /**
     * Used to record usage statistics.
     * @private {!print_preview.DestinationSearchMetricsContext}
     */
    this.metrics_ = new print_preview.DestinationSearchMetricsContext();

    /**
     * Whether or not a UMA histogram for the register promo being shown was
     * already recorded.
     * @private {boolean}
     */
    this.registerPromoShownMetricRecorded_ = false;

    /**
     * Child overlay used for resolving a provisional destination. The overlay
     * is shown when the user attempts to select a provisional destination.
     * Set only when a destination is being resolved.
     * @private {?print_preview.ProvisionalDestinationResolver}
     */
    this.provisionalDestinationResolver_ = null;

    /**
     * The destination that is currently in configuration.
     * @private {?print_preview.Destination}
     */
    this.destinationInConfiguring_ = null;

    /**
     * Search box used to search through the destination lists.
     * @private {!print_preview.SearchBox}
     */
    this.searchBox_ = new print_preview.SearchBox(
        loadTimeData.getString('searchBoxPlaceholder'));
    this.addChild(this.searchBox_);

    /**
     * Destination list containing recent destinations.
     * @private {!print_preview.DestinationList}
     */
    this.recentList_ = new print_preview.RecentDestinationList(this);
    this.addChild(this.recentList_);

    /**
     * Destination list containing all print destinations.
     * @private {!print_preview.DestinationList}
     */
    this.printList_ = new print_preview.DestinationList(
        this, loadTimeData.getString('printDestinationsTitle'),
        loadTimeData.getString('manage'));
    this.addChild(this.printList_);
  }
/**
   * Component used for searching for a print destination.
   * This is a modal dialog that allows the user to search and select a
   * destination to print to. When a destination is selected, it is written to
   * the destination store.
   * @param {!print_preview.DestinationStore} destinationStore Data store
   *     containing the destinations to search through.
   * @param {!print_preview.InvitationStore} invitationStore Data store
   *     holding printer sharing invitations.
   * @param {!print_preview.UserInfo} userInfo Event target that contains
   *     information about the logged in user.
   * @param {!print_preview.AppState} appState Contains recent destination list.
   * @constructor
   * @extends {print_preview.Overlay}
   */
Component used for searching for a print destination.
This is a modal dialog that allows the user to search and select a
destination to print to. When a destination is selected, it is written to
the destination store.
@param {!print_preview.DestinationStore} destinationStore Data store
containing the destinations to search through.
@param {!print_preview.InvitationStore} invitationStore Data store
holding printer sharing invitations.
@param {!print_preview.UserInfo} userInfo Event target that contains
information about the logged in user.
@param {!print_preview.AppState} appState Contains recent destination list.
Component used for searching for a print destination . This is a modal dialog that allows the user to search and select a destination to print to . When a destination is selected it is written to the destination store . @param { !print_preview . DestinationStore } destinationStore Data store containing the destinations to search through . @param { !print_preview . InvitationStore } invitationStore Data store holding printer sharing invitations . @param { !print_preview . UserInfo } userInfo Event target that contains information about the logged in user . @param { !print_preview . AppState } appState Contains recent destination list .
function DestinationSearch(
      destinationStore, invitationStore, userInfo, appState) {
    print_preview.Overlay.call(this);
    this.destinationStore_ = destinationStore;
    this.invitationStore_ = invitationStore;
    this.userInfo_ = userInfo;
    this.appState_ = appState;
    this.invitation_ = null;
    this.metrics_ = new print_preview.DestinationSearchMetricsContext();
    this.registerPromoShownMetricRecorded_ = false;
    this.provisionalDestinationResolver_ = null;
    this.destinationInConfiguring_ = null;
    this.searchBox_ = new print_preview.SearchBox(
        loadTimeData.getString('searchBoxPlaceholder'));
    this.addChild(this.searchBox_);
    this.recentList_ = new print_preview.RecentDestinationList(this);
    this.addChild(this.recentList_);
    this.printList_ = new print_preview.DestinationList(
        this, loadTimeData.getString('printDestinationsTitle'),
        loadTimeData.getString('manage'));
    this.addChild(this.printList_);
  }
function DestinationSearch ( destinationStore , invitationStore , userInfo , appState ) { print_preview . Overlay . call ( this ) ; this . destinationStore_ = destinationStore ; this . invitationStore_ = invitationStore ; this . userInfo_ = userInfo ; this . appState_ = appState ; this . invitation_ = null ; this . metrics_ = new print_preview . DestinationSearchMetricsContext ( ) ; this . registerPromoShownMetricRecorded_ = false ; this . provisionalDestinationResolver_ = null ; this . destinationInConfiguring_ = null ; this . searchBox_ = new print_preview . SearchBox ( loadTimeData . getString ( 'searchBoxPlaceholder' ) ) ; this . addChild ( this . searchBox_ ) ; this . recentList_ = new print_preview . RecentDestinationList ( this ) ; this . addChild ( this . recentList_ ) ; this . printList_ = new print_preview . DestinationList ( this , loadTimeData . getString ( 'printDestinationsTitle' ) , loadTimeData . getString ( 'manage' ) ) ; this . addChild ( this . printList_ ) ; }
Component used for searching for a print destination.
Component used for searching for a print destination .
/**
     * Data store containing the destinations to search through.
     * @private {!print_preview.DestinationStore}
     */ /**
     * Data store holding printer sharing invitations.
     * @private {!print_preview.InvitationStore}
     */ /**
     * Event target that contains information about the logged in user.
     * @private {!print_preview.UserInfo}
     */ /**
     * Contains recent destinations that are currently set to be persisted into
     * the sticky settings.
     * @private {!print_preview.AppState}
     */ /**
     * Currently displayed printer sharing invitation.
     * @private {print_preview.Invitation}
     */ /**
     * Used to record usage statistics.
     * @private {!print_preview.DestinationSearchMetricsContext}
     */ /**
     * Whether or not a UMA histogram for the register promo being shown was
     * already recorded.
     * @private {boolean}
     */ /**
     * Child overlay used for resolving a provisional destination. The overlay
     * is shown when the user attempts to select a provisional destination.
     * Set only when a destination is being resolved.
     * @private {?print_preview.ProvisionalDestinationResolver}
     */ /**
     * The destination that is currently in configuration.
     * @private {?print_preview.Destination}
     */ /**
     * Search box used to search through the destination lists.
     * @private {!print_preview.SearchBox}
     */ /**
     * Destination list containing recent destinations.
     * @private {!print_preview.DestinationList}
     */ /**
     * Destination list containing all print destinations.
     * @private {!print_preview.DestinationList}
     */