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

Unified Diff: content/public/common/platform_notification_data.h

Issue 1262023003: Serialize Notification.direction == "auto" in the database (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: content/public/common/platform_notification_data.h
diff --git a/content/public/common/platform_notification_data.h b/content/public/common/platform_notification_data.h
index 40bd98d0873aab72df91fb7682101fcc6ad6bfd2..be9f7aeceecc9a69ef900689a001dde875be51ad 100644
--- a/content/public/common/platform_notification_data.h
+++ b/content/public/common/platform_notification_data.h
@@ -25,18 +25,19 @@ struct CONTENT_EXPORT PlatformNotificationData {
// property of this structure.
static const size_t kMaximumDeveloperDataSize = 1024 * 1024;
- enum NotificationDirection {
- NotificationDirectionLeftToRight,
- NotificationDirectionRightToLeft,
+ enum Direction {
+ DIRECTION_LEFT_TO_RIGHT,
+ DIRECTION_RIGHT_TO_LEFT,
+ DIRECTION_AUTO,
- NotificationDirectionLast = NotificationDirectionRightToLeft
+ DIRECTION_LAST = DIRECTION_AUTO
};
// Title to be displayed with the Web Notification.
base::string16 title;
// Hint to determine the directionality of the displayed notification.
- NotificationDirection direction = NotificationDirectionLeftToRight;
+ Direction direction = DIRECTION_LEFT_TO_RIGHT;
// BCP 47 language tag describing the notification's contents. Optional.
std::string lang;

Powered by Google App Engine
This is Rietveld 408576698