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

Side by Side Diff: chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_model.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_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_MODEL_H_
6 #define CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_MODEL_H_
7
8 #include "base/macros.h"
9
10 namespace desktop_ios_promotion {
11 enum class PromotionEntryPoint;
12 }
13
14 // This model provides data to the Desktop to mobile promotion and control the
15 // promotion actions.
16 class DesktopIOSPromotionModel {
17 public:
18 // Should be instantiated on the UI thread.
19 explicit DesktopIOSPromotionModel(
20 desktop_ios_promotion::PromotionEntryPoint entry_point);
21 ~DesktopIOSPromotionModel();
22
23 // Called by the view code when "Send SMS" button is clicked by the user.
24 void OnSendSMSClicked();
25
26 // Called by the view code when "No Thanks" button is clicked by the user.
27 void OnNoThanksClicked();
28
29 private:
30 const desktop_ios_promotion::PromotionEntryPoint entry_point_;
31
32 // (TODO): If needed verify that functions that affect the UI are done
33 // on the same thread.
34
35 DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionModel);
36 };
37
38 #endif // CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_MODEL_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698