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

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

Issue 2617543002: Create Desktop to iOS Promotion skeleton. (Closed)
Patch Set: comments Created 3 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
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_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h"
10 #include "ui/views/controls/button/button.h"
11 #include "ui/views/view.h"
12
13 namespace views {
14 class Link;
15 }
16
17 class DesktopIOSPromotionModel;
18
19 // The DesktopIOSPromotionView has the basic layout for the
20 // desktop to ios promotion view.
21 // This view will always be created as a subview of an existing
22 // bubble (ie. Password Bubble, Bookmark Bubble).
23 class DesktopIOSPromotionView : public views::View,
24 public views::ButtonListener {
25 public:
26 explicit DesktopIOSPromotionView(desktop_ios_promotion::PromotionEntryPoint);
27
28 private:
29 // ButtonListener:
30 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
31
32 views::Button* send_sms_button_ = nullptr;
33 views::Button* no_button_ = nullptr;
34 views::Link* learn_more_link_ = nullptr;
35 DesktopIOSPromotionModel* model_ = nullptr;
36
37 DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionView);
38 };
39
40 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_V IEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698