| 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_CONTROLLER
_H_ |
| 6 #define CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_CONTROLLER
_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 namespace desktop_ios_promotion { |
| 11 enum class PromotionEntryPoint; |
| 12 } |
| 13 |
| 14 // This class provides data to the Desktop to mobile promotion and control the |
| 15 // promotion actions. |
| 16 class DesktopIOSPromotionController { |
| 17 public: |
| 18 // Should be instantiated on the UI thread. |
| 19 DesktopIOSPromotionController(); |
| 20 ~DesktopIOSPromotionController(); |
| 21 |
| 22 // Called by the view code when "Send SMS" button is clicked by the user. |
| 23 void OnSendSMSClicked(); |
| 24 |
| 25 // Called by the view code when "No Thanks" button is clicked by the user. |
| 26 void OnNoThanksClicked(); |
| 27 |
| 28 // (TODO): If needed verify that functions that affect the UI are done |
| 29 // on the same thread. |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionController); |
| 32 }; |
| 33 |
| 34 #endif // CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_CONTROL
LER_H_ |
| OLD | NEW |