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 29 matching lines...) Expand all Loading... |
40 #include "wtf/RefCounted.h" | 40 #include "wtf/RefCounted.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 class Dictionary; | 44 class Dictionary; |
45 class ExecutionContext; | 45 class ExecutionContext; |
46 class NotificationClient; | 46 class NotificationClient; |
47 class NotificationPermissionCallback; | 47 class NotificationPermissionCallback; |
48 | 48 |
49 class Notification FINAL : public RefCountedWillBeRefCountedGarbageCollected<Not
ification>, public NotificationBase { | 49 class Notification FINAL : public RefCountedWillBeRefCountedGarbageCollected<Not
ification>, public NotificationBase { |
50 DECLARE_GC_INFO; | |
51 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<N
otification>); | 50 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<N
otification>); |
52 | 51 |
53 public: | 52 public: |
54 static PassRefPtrWillBeRawPtr<Notification> create(ExecutionContext*, const
String& title, const Dictionary& options); | 53 static PassRefPtrWillBeRawPtr<Notification> create(ExecutionContext*, const
String& title, const Dictionary& options); |
55 | 54 |
56 virtual ~Notification(); | 55 virtual ~Notification(); |
57 | 56 |
58 static const String& permission(ExecutionContext*); | 57 static const String& permission(ExecutionContext*); |
59 static void requestPermission(ExecutionContext*, PassOwnPtr<NotificationPerm
issionCallback> = nullptr); | 58 static void requestPermission(ExecutionContext*, PassOwnPtr<NotificationPerm
issionCallback> = nullptr); |
60 | 59 |
(...skipping 10 matching lines...) Expand all Loading... |
71 Notification(ExecutionContext*, const String& title, NotificationClient*); | 70 Notification(ExecutionContext*, const String& title, NotificationClient*); |
72 | 71 |
73 void showSoon(); | 72 void showSoon(); |
74 | 73 |
75 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner; | 74 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner; |
76 }; | 75 }; |
77 | 76 |
78 } // namespace WebCore | 77 } // namespace WebCore |
79 | 78 |
80 #endif // Notifications_h | 79 #endif // Notifications_h |
OLD | NEW |