| 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 30 matching lines...) Expand all Loading... |
| 41 #include "platform/weborigin/KURL.h" | 41 #include "platform/weborigin/KURL.h" |
| 42 #include "wtf/OwnPtr.h" | 42 #include "wtf/OwnPtr.h" |
| 43 #include "wtf/RefCounted.h" | 43 #include "wtf/RefCounted.h" |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace WebCore { |
| 46 | 46 |
| 47 class Dictionary; | 47 class Dictionary; |
| 48 class ExecutionContext; | 48 class ExecutionContext; |
| 49 class NotificationPermissionCallback; | 49 class NotificationPermissionCallback; |
| 50 | 50 |
| 51 class Notification : public RefCountedGarbageCollected<Notification>, public Scr
iptWrappable, public ActiveDOMObject, public EventTargetWithInlineData { | 51 class Notification : public GarbageCollectedFinalized<Notification>, public Scri
ptWrappable, public ActiveDOMObject, public EventTargetWithInlineData { |
| 52 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<Notification>); | |
| 53 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Notification); | 52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Notification); |
| 54 public: | 53 public: |
| 55 static Notification* create(ExecutionContext*, const String& title, const Di
ctionary& options); | 54 static Notification* create(ExecutionContext*, const String& title, const Di
ctionary& options); |
| 56 | 55 |
| 57 virtual ~Notification(); | 56 virtual ~Notification(); |
| 58 | 57 |
| 59 void close(); | 58 void close(); |
| 60 | 59 |
| 61 DEFINE_ATTRIBUTE_EVENT_LISTENER(click); | 60 DEFINE_ATTRIBUTE_EVENT_LISTENER(click); |
| 62 DEFINE_ATTRIBUTE_EVENT_LISTENER(show); | 61 DEFINE_ATTRIBUTE_EVENT_LISTENER(show); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 NotificationState m_state; | 124 NotificationState m_state; |
| 126 | 125 |
| 127 NotificationClient* m_client; | 126 NotificationClient* m_client; |
| 128 | 127 |
| 129 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner; | 128 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner; |
| 130 }; | 129 }; |
| 131 | 130 |
| 132 } // namespace WebCore | 131 } // namespace WebCore |
| 133 | 132 |
| 134 #endif // Notification_h | 133 #endif // Notification_h |
| OLD | NEW |