| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 class Dictionary; | 57 class Dictionary; |
| 58 class NotificationCenter; | 58 class NotificationCenter; |
| 59 class NotificationPermissionCallback; | 59 class NotificationPermissionCallback; |
| 60 class ResourceError; | 60 class ResourceError; |
| 61 class ResourceResponse; | 61 class ResourceResponse; |
| 62 class ScriptExecutionContext; | 62 class ScriptExecutionContext; |
| 63 class ThreadableLoader; | 63 class ThreadableLoader; |
| 64 | 64 |
| 65 typedef int ExceptionCode; | 65 typedef int ExceptionCode; |
| 66 | 66 |
| 67 class Notification : public RefCounted<Notification>, public ScriptWrappable, pu
blic ActiveDOMObject, public EventTarget { | 67 class Notification : public EventTarget, public RefCounted<Notification>, public
ScriptWrappable, public ActiveDOMObject { |
| 68 WTF_MAKE_FAST_ALLOCATED; | 68 WTF_MAKE_FAST_ALLOCATED; |
| 69 public: | 69 public: |
| 70 Notification(); | 70 Notification(); |
| 71 #if ENABLE(LEGACY_NOTIFICATIONS) | 71 #if ENABLE(LEGACY_NOTIFICATIONS) |
| 72 static PassRefPtr<Notification> create(const KURL&, ScriptExecutionContext*,
ExceptionCode&, PassRefPtr<NotificationCenter> provider); | 72 static PassRefPtr<Notification> create(const KURL&, ScriptExecutionContext*,
ExceptionCode&, PassRefPtr<NotificationCenter> provider); |
| 73 static PassRefPtr<Notification> create(const String& title, const String& bo
dy, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<N
otificationCenter> provider); | 73 static PassRefPtr<Notification> create(const String& title, const String& bo
dy, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<N
otificationCenter> provider); |
| 74 #endif | 74 #endif |
| 75 #if ENABLE(NOTIFICATIONS) | 75 #if ENABLE(NOTIFICATIONS) |
| 76 static PassRefPtr<Notification> create(ScriptExecutionContext*, const String
& title, const Dictionary& options); | 76 static PassRefPtr<Notification> create(ScriptExecutionContext*, const String
& title, const Dictionary& options); |
| 77 #endif | 77 #endif |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 #if ENABLE(NOTIFICATIONS) | 203 #if ENABLE(NOTIFICATIONS) |
| 204 OwnPtr<Timer<Notification> > m_taskTimer; | 204 OwnPtr<Timer<Notification> > m_taskTimer; |
| 205 #endif | 205 #endif |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 } // namespace WebCore | 208 } // namespace WebCore |
| 209 | 209 |
| 210 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) | 210 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) |
| 211 | 211 |
| 212 #endif // Notifications_h | 212 #endif // Notifications_h |
| OLD | NEW |