| Index: chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h
|
| diff --git a/chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h b/chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cf450e2e1ef5aebe0d9478bda58c6716100d915c
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_UTIL_H_
|
| +#define CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_UTIL_H_
|
| +
|
| +namespace desktop_ios_promotion {
|
| +
|
| +// Represents the reason that the Desktop to iOS promotion was dismissed for.
|
| +enum class PromotionDismissalReason {
|
| + FOCUS_LOST = 0,
|
| + TAB_SWITCHED,
|
| + NO_THANKS,
|
| + CLOSE_BUTTON,
|
| + SEND_SMS,
|
| + LEARN_MORE_CLICKED,
|
| +};
|
| +
|
| +// The place where the promotion appeared.
|
| +enum class PromotionEntryPoint {
|
| + SAVE_PASSWORD_BUBBLE = 0,
|
| + BOOKMARKS_BUBBLE,
|
| + BOOKMARKS_LINK,
|
| + HISTORY_PAGE
|
| +};
|
| +
|
| +bool IsEligibleForIOSPromotion();
|
| +
|
| +} // namespace desktop_ios_promotion
|
| +
|
| +#endif // CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_UTIL_H_
|
|
|