#ifndef ASH_SYSTEM_PHONEHUB_PHONE_HUB_INTERSTITIAL_VIEW_H_
#define ASH_SYSTEM_PHONEHUB_PHONE_HUB_INTERSTITIAL_VIEW_H_
#include <vector>
#include "ash/ash_export.h"
#include "ash/system/phonehub/phone_hub_content_view.h"
#include "base/memory/raw_ptr.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/views/controls/progress_bar.h"
#include "ui/views/view.h"
namespace ui {
class ImageModel;
}
namespace views {
class BoxLayoutView;
class Button;
class ImageView;
class Label;
class ProgressBar;
}
namespace ash {
class ASH_EXPORT PhoneHubInterstitialView : public PhoneHubContentView {
METADATA_HEADER(PhoneHubInterstitialView, PhoneHubContentView)
public:
explicit PhoneHubInterstitialView(bool show_progress, bool show_image = true);
PhoneHubInterstitialView(const PhoneHubInterstitialView&) = delete;
PhoneHubInterstitialView& operator=(const PhoneHubInterstitialView&) = delete;
~PhoneHubInterstitialView() override;
void SetImage(const ui::ImageModel& image_model);
void SetTitle(const std::u16string& title);
void SetDescription(const std::u16string& desc);
void AddButton(std::unique_ptr<views::Button> button);
private:
raw_ptr<views::ProgressBar> progress_bar_ = nullptr;
raw_ptr<views::ImageView> image_ = nullptr;
raw_ptr<views::Label> title_ = nullptr;
raw_ptr<views::Label> description_ = nullptr;
raw_ptr<views::BoxLayoutView> button_container_ = nullptr;
};
}
#endif