Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_bubble_view.h

Issue 2694893002: Integrate SMS service with Desktop iOS promotion (Closed)
Patch Set: Rename desktop_ios_promotion_view Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_BUBB LE_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_BUBB LE_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 "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_view.h"
10 #include "ui/views/controls/button/button.h" 11 #include "ui/views/controls/button/button.h"
12 #include "ui/views/controls/label.h"
11 #include "ui/views/view.h" 13 #include "ui/views/view.h"
12 14
13 class DesktopIOSPromotionController; 15 class DesktopIOSPromotionController;
14 16
15 // The DesktopIOSPromotionView has the basic layout for the 17 // The DesktopIOSPromotionBubbleView has the basic layout for the
16 // desktop to ios promotion view. 18 // desktop to ios promotion view.
17 // This view will always be created as a subview of an existing 19 // This view will always be created as a subview of an existing
18 // bubble (ie. Password Bubble, Bookmark Bubble). 20 // bubble (ie. Password Bubble, Bookmark Bubble).
19 class DesktopIOSPromotionView : public views::View, 21 class DesktopIOSPromotionBubbleView : public DesktopIOSPromotionView,
sky 2017/02/17 22:49:32 Thanks for the rename much better!
20 public views::ButtonListener { 22 public views::View,
23 public views::ButtonListener {
21 public: 24 public:
22 explicit DesktopIOSPromotionView(desktop_ios_promotion::PromotionEntryPoint); 25 explicit DesktopIOSPromotionBubbleView(
26 DesktopIOSPromotionController* controller);
27 ~DesktopIOSPromotionBubbleView();
28
29 // DesktopIOSPromotionView:
30 void UpdateRecoveryPhoneLabel() override;
23 31
24 private: 32 private:
25 // ButtonListener: 33 // ButtonListener:
26 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 34 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
27 35
28 views::Button* send_sms_button_ = nullptr; 36 views::Button* send_sms_button_ = nullptr;
29 views::Button* no_button_ = nullptr; 37 views::Button* no_button_ = nullptr;
30 // TODO(crbug.com/676655): Add learn more link. 38 views::Label* recovery_phone_label_ = nullptr;
31 39
32 DesktopIOSPromotionController* promotion_controller_ = nullptr; 40 // A weak pointer to the controller.
41 DesktopIOSPromotionController* promotion_controller_;
33 42
34 DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionView); 43 DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionBubbleView);
35 }; 44 };
36 45
37 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_V IEW_H_ 46 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_B UBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698