OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_VIEW
_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_VIEW
_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_VIEW
_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_VIEW
_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h" | 9 #include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h" |
10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
11 #include "ui/views/view.h" | 11 #include "ui/views/view.h" |
12 | 12 |
13 class DesktopIOSPromotionController; | 13 class DesktopIOSPromotionController; |
| 14 class Profile; |
14 | 15 |
15 // The DesktopIOSPromotionView has the basic layout for the | 16 // The DesktopIOSPromotionView has the basic layout for the |
16 // desktop to ios promotion view. | 17 // desktop to ios promotion view. |
17 // This view will always be created as a subview of an existing | 18 // This view will always be created as a subview of an existing |
18 // bubble (ie. Password Bubble, Bookmark Bubble). | 19 // bubble (ie. Password Bubble, Bookmark Bubble). |
19 class DesktopIOSPromotionView : public views::View, | 20 class DesktopIOSPromotionView : public views::View, |
20 public views::ButtonListener { | 21 public views::ButtonListener { |
21 public: | 22 public: |
22 explicit DesktopIOSPromotionView(desktop_ios_promotion::PromotionEntryPoint); | 23 DesktopIOSPromotionView(Profile* profile, |
| 24 desktop_ios_promotion::PromotionEntryPoint); |
23 | 25 |
24 private: | 26 private: |
25 // ButtonListener: | 27 // ButtonListener: |
26 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 28 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
27 | 29 |
28 views::Button* send_sms_button_ = nullptr; | 30 views::Button* send_sms_button_ = nullptr; |
29 views::Button* no_button_ = nullptr; | 31 views::Button* no_button_ = nullptr; |
30 // TODO(crbug.com/676655): Add learn more link. | 32 // TODO(crbug.com/676655): Add learn more link. |
31 | 33 |
32 DesktopIOSPromotionController* promotion_controller_ = nullptr; | 34 DesktopIOSPromotionController* promotion_controller_ = nullptr; |
33 | 35 |
34 DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionView); | 36 DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionView); |
35 }; | 37 }; |
36 | 38 |
37 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_V
IEW_H_ | 39 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_V
IEW_H_ |
OLD | NEW |