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

Unified Diff: chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h

Issue 2617543002: Create Desktop to iOS Promotion skeleton. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698