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 namespace desktop_ios_promotion { |
| 9 |
| 10 // Represents the reason that the Desktop to iOS promotion was dismissed for. |
| 11 enum class PromotionDismissalReason { |
| 12 FOCUS_LOST = 0, |
| 13 TAB_SWITCHED, |
| 14 NO_THANKS, |
| 15 CLOSE_BUTTON, |
| 16 SEND_SMS, |
| 17 LEARN_MORE_CLICKED, |
| 18 }; |
| 19 |
| 20 // The place where the promotion appeared. |
| 21 enum class PromotionEntryPoint { |
| 22 SAVE_PASSWORD_BUBBLE = 0, |
| 23 BOOKMARKS_BUBBLE, |
| 24 BOOKMARKS_LINK, |
| 25 HISTORY_PAGE |
| 26 }; |
| 27 |
| 28 bool IsEligibleForIOSPromotion(); |
| 29 |
| 30 } // namespace desktop_ios_promotion |
| 31 |
| 32 #endif // CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_UTIL_H_ |
OLD | NEW |