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

Unified Diff: chrome/browser/web_resource/notification_promo.h

Issue 10820048: Add OS_IOS defines for the mobile promo. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address code review: Return const reference. Created 8 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_resource/notification_promo.h
diff --git a/chrome/browser/web_resource/notification_promo.h b/chrome/browser/web_resource/notification_promo.h
index 9c9791d83472a0e72cd1dd1ab31f71e3b4a9e459..deec74748b1f525f4ec39a4096ea578b48a53913 100644
--- a/chrome/browser/web_resource/notification_promo.h
+++ b/chrome/browser/web_resource/notification_promo.h
@@ -51,6 +51,15 @@ class NotificationPromo {
bool new_notification() const { return new_notification_; }
+ const std::string& promo_text() const { return promo_text_; }
+#if defined(OS_ANDROID) || defined(OS_IOS)
+ const std::string& promo_text_long() const { return promo_text_long_; }
+ const std::string& promo_action_type() const { return promo_action_type_; }
+ const base::ListValue* promo_action_args() const {
+ return promo_action_args_.get();
+ }
+#endif // defined(OS_ANDROID) || defined(OS_IOS)
+
// Register preferences.
static void RegisterUserPrefs(PrefService* prefs);
@@ -84,11 +93,11 @@ class NotificationPromo {
std::string promo_type_;
std::string promo_text_;
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(OS_IOS)
std::string promo_text_long_;
std::string promo_action_type_;
scoped_ptr<base::ListValue> promo_action_args_;
-#endif
+#endif // defined(OS_ANDROID) || defined(OS_IOS)
double start_;
double end_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698