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 23 matching lines...) Expand all Loading... |
34 #include "core/dom/ActiveDOMObject.h" | 34 #include "core/dom/ActiveDOMObject.h" |
35 #include "modules/EventTargetModules.h" | 35 #include "modules/EventTargetModules.h" |
36 #include "modules/notifications/NotificationClient.h" | 36 #include "modules/notifications/NotificationClient.h" |
37 #include "platform/AsyncMethodRunner.h" | 37 #include "platform/AsyncMethodRunner.h" |
38 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
39 #include "platform/text/TextDirection.h" | 39 #include "platform/text/TextDirection.h" |
40 #include "platform/weborigin/KURL.h" | 40 #include "platform/weborigin/KURL.h" |
41 #include "wtf/PassOwnPtr.h" | 41 #include "wtf/PassOwnPtr.h" |
42 #include "wtf/RefCounted.h" | 42 #include "wtf/RefCounted.h" |
43 | 43 |
44 namespace WebCore { | 44 namespace blink { |
45 | 45 |
46 class Dictionary; | 46 class Dictionary; |
47 class ExecutionContext; | 47 class ExecutionContext; |
48 class NotificationPermissionCallback; | 48 class NotificationPermissionCallback; |
49 | 49 |
50 class Notification : public RefCountedGarbageCollectedWillBeGarbageCollectedFina
lized<Notification>, public ActiveDOMObject, public EventTargetWithInlineData { | 50 class Notification : public RefCountedGarbageCollectedWillBeGarbageCollectedFina
lized<Notification>, public ActiveDOMObject, public EventTargetWithInlineData { |
51 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<N
otification>); | 51 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<N
otification>); |
52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Notification); | 52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Notification); |
53 public: | 53 public: |
54 static Notification* create(ExecutionContext*, const String& title, const Di
ctionary& options); | 54 static Notification* create(ExecutionContext*, const String& title, const Di
ctionary& options); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 NotificationStateClosed | 121 NotificationStateClosed |
122 }; | 122 }; |
123 | 123 |
124 NotificationState m_state; | 124 NotificationState m_state; |
125 | 125 |
126 NotificationClient* m_client; | 126 NotificationClient* m_client; |
127 | 127 |
128 AsyncMethodRunner<Notification> m_asyncRunner; | 128 AsyncMethodRunner<Notification> m_asyncRunner; |
129 }; | 129 }; |
130 | 130 |
131 } // namespace WebCore | 131 } // namespace blink |
132 | 132 |
133 #endif // Notification_h | 133 #endif // Notification_h |
OLD | NEW |