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

Unified Diff: third_party/WebKit/Source/modules/notifications/Notification.cpp

Issue 1388483002: Implement the Notification `timestamp` property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/modules/notifications/Notification.cpp
diff --git a/third_party/WebKit/Source/modules/notifications/Notification.cpp b/third_party/WebKit/Source/modules/notifications/Notification.cpp
index 74a5239507784daf04866d56062bd21805f3254e..d10d36a7443f73bcfe45995867f3415874336f24 100644
--- a/third_party/WebKit/Source/modules/notifications/Notification.cpp
+++ b/third_party/WebKit/Source/modules/notifications/Notification.cpp
@@ -253,6 +253,11 @@ NavigatorVibration::VibrationPattern Notification::vibrate(bool& isNull) const
return pattern;
}
+DOMTimeStamp Notification::timestamp() const
+{
+ return m_data.timestamp;
+}
+
bool Notification::silent() const
{
return m_data.silent;

Powered by Google App Engine
This is Rietveld 408576698