Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Side by Side Diff: chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h

Issue 2617543002: Create Desktop to iOS Promotion skeleton. (Closed)
Patch Set: add cocoa modifications Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698