| OLD | NEW |
| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 String badge() const; | 106 String badge() const; |
| 107 NavigatorVibration::VibrationPattern vibrate() const; | 107 NavigatorVibration::VibrationPattern vibrate() const; |
| 108 DOMTimeStamp timestamp() const; | 108 DOMTimeStamp timestamp() const; |
| 109 bool renotify() const; | 109 bool renotify() const; |
| 110 bool silent() const; | 110 bool silent() const; |
| 111 bool requireInteraction() const; | 111 bool requireInteraction() const; |
| 112 ScriptValue data(ScriptState*); | 112 ScriptValue data(ScriptState*); |
| 113 Vector<v8::Local<v8::Value>> actions(ScriptState*) const; | 113 Vector<v8::Local<v8::Value>> actions(ScriptState*) const; |
| 114 | 114 |
| 115 static String permissionString(mojom::blink::PermissionStatus); | 115 static String permissionString(mojom::blink::PermissionStatus); |
| 116 static String permission(ExecutionContext*); | 116 static String permission(ScriptState*); |
| 117 static ScriptPromise requestPermission(ScriptState*, | 117 static ScriptPromise requestPermission(ScriptState*, |
| 118 NotificationPermissionCallback*); | 118 NotificationPermissionCallback*); |
| 119 | 119 |
| 120 static size_t maxActions(); | 120 static size_t maxActions(); |
| 121 | 121 |
| 122 // EventTarget interface. | 122 // EventTarget interface. |
| 123 ExecutionContext* getExecutionContext() const final { | 123 ExecutionContext* getExecutionContext() const final { |
| 124 return ContextLifecycleObserver::getExecutionContext(); | 124 return ContextLifecycleObserver::getExecutionContext(); |
| 125 } | 125 } |
| 126 const AtomicString& interfaceName() const override; | 126 const AtomicString& interfaceName() const override; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 String m_notificationId; | 177 String m_notificationId; |
| 178 | 178 |
| 179 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner; | 179 Member<AsyncMethodRunner<Notification>> m_prepareShowMethodRunner; |
| 180 | 180 |
| 181 Member<NotificationResourcesLoader> m_loader; | 181 Member<NotificationResourcesLoader> m_loader; |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 } // namespace blink | 184 } // namespace blink |
| 185 | 185 |
| 186 #endif // Notification_h | 186 #endif // Notification_h |
| OLD | NEW |