| OLD | NEW |
| (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
_ |
| OLD | NEW |