| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2009, 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009, 2011, 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // EventTarget interface | 115 // EventTarget interface |
| 116 virtual const AtomicString& interfaceName() const OVERRIDE; | 116 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 117 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD
OMObject::executionContext(); } | 117 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD
OMObject::executionContext(); } |
| 118 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; | 118 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; |
| 119 | 119 |
| 120 // ActiveDOMObject interface | 120 // ActiveDOMObject interface |
| 121 virtual void contextDestroyed(); | 121 virtual void contextDestroyed(); |
| 122 | 122 |
| 123 void stopLoadingIcon(); | 123 void stopLoadingIcon(); |
| 124 | 124 |
| 125 // Deprecated. Use functions from NotificationCenter. | |
| 126 void detachPresenter() { } | |
| 127 | |
| 128 void finalize(); | 125 void finalize(); |
| 129 | 126 |
| 130 static const String& permission(ExecutionContext*); | 127 static const String& permission(ExecutionContext*); |
| 131 static const String& permissionString(NotificationClient::Permission); | 128 static const String& permissionString(NotificationClient::Permission); |
| 132 static void requestPermission(ExecutionContext*, PassRefPtr<NotificationPerm
issionCallback> = 0); | 129 static void requestPermission(ExecutionContext*, PassRefPtr<NotificationPerm
issionCallback> = 0); |
| 133 | 130 |
| 134 private: | 131 private: |
| 135 #if ENABLE(LEGACY_NOTIFICATIONS) | 132 #if ENABLE(LEGACY_NOTIFICATIONS) |
| 136 Notification(const String& title, const String& body, const String& iconURI,
ExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter>); | 133 Notification(const String& title, const String& body, const String& iconURI,
ExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter>); |
| 137 #endif | 134 #endif |
| (...skipping 24 matching lines...) Expand all Loading... |
| 162 NotificationState m_state; | 159 NotificationState m_state; |
| 163 | 160 |
| 164 NotificationClient* m_notificationClient; | 161 NotificationClient* m_notificationClient; |
| 165 | 162 |
| 166 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner; | 163 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner; |
| 167 }; | 164 }; |
| 168 | 165 |
| 169 } // namespace WebCore | 166 } // namespace WebCore |
| 170 | 167 |
| 171 #endif // Notifications_h | 168 #endif // Notifications_h |
| OLD | NEW |