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

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: 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_model.h"
10 #include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h"
11 #include "ui/views/controls/button/button.h"
12 #include "ui/views/view.h"
13
14 namespace views {
15 class Link;
16 }
17
18 // The DesktopIOSPromotionView has the basic layout for the
19 // desktop to ios promotion view.
20 // This view will always be created as a subview of an existing
21 // bubble (ie. Password Bubble, Bookmark Bubble).
22 class DesktopIOSPromotionView : public views::View,
sky 2017/01/04 20:52:37 Why do you need to subclass View here?
23 public views::ButtonListener {
24 public:
25 explicit DesktopIOSPromotionView(desktop_ios_promotion::PromotionEntryPoint);
26
sky 2017/01/04 20:52:37 Don't inline destructor.
27 private:
28 int GetDesiredBubbleWidth(
29 desktop_ios_promotion::PromotionEntryPoint entry_point);
30 base::string16 GetPromoBubbleText(
31 desktop_ios_promotion::PromotionEntryPoint entry_point);
32
33 // ButtonListener:
34 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
35
36 views::Button* send_sms_button_ = nullptr;
37 views::Button* no_button_ = nullptr;
38 views::Link* learn_more_link_ = nullptr;
39 DesktopIOSPromotionModel* model_ = nullptr;
40
41 DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionView);
42 };
43
44 #endif // CHROME_BROWSER_UI_VIEWS_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_V IEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698