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

Side by Side Diff: third_party/WebKit/Source/modules/notifications/Notification.h

Issue 1656243002: Implementation of renotify flag for Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TypeError for incorrect options and unit test Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 String title() const; 87 String title() const;
88 String dir() const; 88 String dir() const;
89 String lang() const; 89 String lang() const;
90 String body() const; 90 String body() const;
91 String tag() const; 91 String tag() const;
92 String icon() const; 92 String icon() const;
93 NavigatorVibration::VibrationPattern vibrate(bool& isNull) const; 93 NavigatorVibration::VibrationPattern vibrate(bool& isNull) const;
94 DOMTimeStamp timestamp() const; 94 DOMTimeStamp timestamp() const;
95 bool silent() const; 95 bool silent() const;
96 bool renotify() const;
96 bool requireInteraction() const; 97 bool requireInteraction() const;
97 ScriptValue data(ScriptState*); 98 ScriptValue data(ScriptState*);
98 HeapVector<NotificationAction> actions() const; 99 HeapVector<NotificationAction> actions() const;
99 100
100 static String permissionString(WebNotificationPermission); 101 static String permissionString(WebNotificationPermission);
101 static String permission(ExecutionContext*); 102 static String permission(ExecutionContext*);
102 static WebNotificationPermission checkPermission(ExecutionContext*); 103 static WebNotificationPermission checkPermission(ExecutionContext*);
103 static ScriptPromise requestPermission(ScriptState*, NotificationPermissionC allback*); 104 static ScriptPromise requestPermission(ScriptState*, NotificationPermissionC allback*);
104 105
105 static size_t maxActions(); 106 static size_t maxActions();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void setState(NotificationState state) { m_state = state; } 155 void setState(NotificationState state) { m_state = state; }
155 156
156 NotificationState m_state; 157 NotificationState m_state;
157 158
158 Member<AsyncMethodRunner<Notification>> m_asyncRunner; 159 Member<AsyncMethodRunner<Notification>> m_asyncRunner;
159 }; 160 };
160 161
161 } // namespace blink 162 } // namespace blink
162 163
163 #endif // Notification_h 164 #endif // Notification_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698