| 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_UTIL_H_ |
| 6 #define CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_UTIL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/base/l10n/l10n_util.h" |
| 10 |
| 11 namespace desktop_ios_promotion { |
| 12 |
| 13 // Represents the reason that the Desktop to iOS promotion was dismissed for. |
| 14 enum class PromotionDismissalReason { |
| 15 FOCUS_LOST = 0, |
| 16 TAB_SWITCHED, |
| 17 NO_THANKS, |
| 18 CLOSE_BUTTON, |
| 19 SEND_SMS, |
| 20 LEARN_MORE_CLICKED, |
| 21 }; |
| 22 |
| 23 // The place where the promotion appeared. |
| 24 enum class PromotionEntryPoint { |
| 25 SAVE_PASSWORD_BUBBLE = 0, |
| 26 BOOKMARKS_BUBBLE, |
| 27 BOOKMARKS_LINK, |
| 28 HISTORY_PAGE |
| 29 }; |
| 30 |
| 31 bool IsEligibleForIOSPromotion(); |
| 32 |
| 33 // Returns the Bubble text based on the promotion entry point. |
| 34 base::string16 GetPromoBubbleText( |
| 35 desktop_ios_promotion::PromotionEntryPoint entry_point); |
| 36 |
| 37 } // namespace desktop_ios_promotion |
| 38 |
| 39 #endif // CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_UTIL_H_ |
| OLD | NEW |