| Index: chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_view.h
|
| diff --git a/chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_view.h b/chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_view.h
|
| index 65c71080090d20276317dc94031525047678e90a..38789ddf81466cae4aedec72b14e620dc09f13c0 100644
|
| --- a/chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_view.h
|
| +++ b/chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_view.h
|
| @@ -6,8 +6,10 @@
|
| #define CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_VIEW_H_
|
|
|
| #include "base/macros.h"
|
| +#include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion.h"
|
| #include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h"
|
| #include "ui/views/controls/button/button.h"
|
| +#include "ui/views/controls/label.h"
|
| #include "ui/views/view.h"
|
|
|
| class DesktopIOSPromotionController;
|
| @@ -16,10 +18,15 @@ class DesktopIOSPromotionController;
|
| // desktop to ios promotion view.
|
| // This view will always be created as a subview of an existing
|
| // bubble (ie. Password Bubble, Bookmark Bubble).
|
| -class DesktopIOSPromotionView : public views::View,
|
| +class DesktopIOSPromotionView : public DesktopIOSPromotion,
|
| + public views::View,
|
| public views::ButtonListener {
|
| public:
|
| - explicit DesktopIOSPromotionView(desktop_ios_promotion::PromotionEntryPoint);
|
| + explicit DesktopIOSPromotionView(DesktopIOSPromotionController* controller);
|
| + ~DesktopIOSPromotionView();
|
| +
|
| + // DesktopIOSPromotion:
|
| + void UpdateRecoveryPhoneLabel() override;
|
|
|
| private:
|
| // ButtonListener:
|
| @@ -27,9 +34,10 @@ class DesktopIOSPromotionView : public views::View,
|
|
|
| views::Button* send_sms_button_ = nullptr;
|
| views::Button* no_button_ = nullptr;
|
| - // TODO(crbug.com/676655): Add learn more link.
|
| + views::Label* recovery_phone_label_ = nullptr;
|
|
|
| - DesktopIOSPromotionController* promotion_controller_ = nullptr;
|
| + // A weak pointer to the controller.
|
| + DesktopIOSPromotionController* promotion_controller_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionView);
|
| };
|
|
|