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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 TextDirection direction() const; | 79 TextDirection direction() const; |
80 KURL iconURL() const { return m_iconUrl; } | 80 KURL iconURL() const { return m_iconUrl; } |
81 | 81 |
82 static const String& permissionString(NotificationClient::Permission); | 82 static const String& permissionString(NotificationClient::Permission); |
83 static const String& permission(ExecutionContext*); | 83 static const String& permission(ExecutionContext*); |
84 static void requestPermission(ExecutionContext*, PassOwnPtr<NotificationPerm
issionCallback> = nullptr); | 84 static void requestPermission(ExecutionContext*, PassOwnPtr<NotificationPerm
issionCallback> = nullptr); |
85 | 85 |
86 // EventTarget interface. | 86 // EventTarget interface. |
87 virtual ExecutionContext* executionContext() const OVERRIDE FINAL { return A
ctiveDOMObject::executionContext(); } | 87 virtual ExecutionContext* executionContext() const OVERRIDE FINAL { return A
ctiveDOMObject::executionContext(); } |
88 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE FINAL; | 88 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE FINAL; |
89 virtual const AtomicString& interfaceName() const OVERRIDE; | 89 virtual const AtomicString& interfaceName() const OVERRIDE; |
90 | 90 |
91 // ActiveDOMObject interface. | 91 // ActiveDOMObject interface. |
92 virtual void stop() OVERRIDE; | 92 virtual void stop() OVERRIDE; |
93 virtual bool hasPendingActivity() const OVERRIDE; | 93 virtual bool hasPendingActivity() const OVERRIDE; |
94 | 94 |
95 // RefCountedWillBeRefCountedGarbageCollected<Notification> interface. | 95 // RefCountedWillBeRefCountedGarbageCollected<Notification> interface. |
96 void trace(Visitor*) { } | 96 void trace(Visitor*) { } |
97 | 97 |
98 private: | 98 private: |
(...skipping 30 matching lines...) Expand all Loading... |
129 NotificationState m_state; | 129 NotificationState m_state; |
130 | 130 |
131 NotificationClient* m_client; | 131 NotificationClient* m_client; |
132 | 132 |
133 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner; | 133 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner; |
134 }; | 134 }; |
135 | 135 |
136 } // namespace WebCore | 136 } // namespace WebCore |
137 | 137 |
138 #endif // Notification_h | 138 #endif // Notification_h |
OLD | NEW |