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

Unified Diff: Source/modules/notifications/Notification.h

Issue 1042513002: Add the vibrate attribute to the Notification object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 | « Source/modules/notifications/DEPS ('k') | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/notifications/Notification.h
diff --git a/Source/modules/notifications/Notification.h b/Source/modules/notifications/Notification.h
index 77a79313558bed5c1b68261eac10dfc7c3b5a79a..10de912a2388cc6cf817831ff8d180ee3af8928d 100644
--- a/Source/modules/notifications/Notification.h
+++ b/Source/modules/notifications/Notification.h
@@ -34,6 +34,7 @@
#include "bindings/core/v8/SerializedScriptValue.h"
#include "core/dom/ActiveDOMObject.h"
#include "modules/EventTargetModules.h"
+#include "modules/vibration/NavigatorVibration.h"
#include "platform/AsyncMethodRunner.h"
#include "platform/heap/Handle.h"
#include "platform/text/TextDirection.h"
@@ -52,6 +53,7 @@ class NotificationOptions;
class NotificationPermissionCallback;
class ScriptState;
class ScriptValue;
+class UnsignedLongOrUnsignedLongSequence;
struct WebNotificationData;
class Notification final : public RefCountedGarbageCollectedEventTargetWithInlineData<Notification>, public ActiveDOMObject, public WebNotificationDelegate {
@@ -89,6 +91,7 @@ public:
String body() const { return m_body; }
String tag() const { return m_tag; }
String icon() const { return m_iconUrl; }
+ NavigatorVibration::VibrationPattern vibrate(bool& isNull) const;
bool silent() const { return m_silent; }
ScriptValue data(ScriptState*) const;
@@ -129,6 +132,7 @@ private:
void setBody(const String& body) { m_body = body; }
void setIconUrl(KURL iconUrl) { m_iconUrl = iconUrl; }
void setTag(const String& tag) { m_tag = tag; }
+ void setVibrate(const NavigatorVibration::VibrationPattern& vibrate) { m_vibrate = vibrate; }
void setSilent(bool silent) { m_silent = silent; }
void setSerializedData(PassRefPtr<SerializedScriptValue> data) { m_serializedData = data; }
@@ -141,6 +145,7 @@ private:
String m_lang;
String m_body;
String m_tag;
+ NavigatorVibration::VibrationPattern m_vibrate;
bool m_silent;
RefPtr<SerializedScriptValue> m_serializedData;
« no previous file with comments | « Source/modules/notifications/DEPS ('k') | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698