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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 static PassRefPtr<Notification> create(const String& title, const String& bo
dy, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<N
otificationCenter> provider); | 72 static PassRefPtr<Notification> create(const String& title, const String& bo
dy, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<N
otificationCenter> provider); |
73 #endif | 73 #endif |
74 #if ENABLE(NOTIFICATIONS) | 74 #if ENABLE(NOTIFICATIONS) |
75 static PassRefPtr<Notification> create(ScriptExecutionContext*, const String
& title, const Dictionary& options); | 75 static PassRefPtr<Notification> create(ScriptExecutionContext*, const String
& title, const Dictionary& options); |
76 #endif | 76 #endif |
77 | 77 |
78 virtual ~Notification(); | 78 virtual ~Notification(); |
79 | 79 |
80 virtual void trace(Visitor*) { } | 80 virtual void trace(Visitor*) { } |
81 | 81 |
82 virtual void visitWith(Visitor* visitor) const OVERRIDE | 82 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
83 { | 83 { |
84 visitor->visit(this); | 84 visitor->mark(this); |
85 } | 85 } |
86 | 86 |
87 void show(); | 87 void show(); |
88 #if ENABLE(LEGACY_NOTIFICATIONS) | 88 #if ENABLE(LEGACY_NOTIFICATIONS) |
89 void cancel() { close(); } | 89 void cancel() { close(); } |
90 #endif | 90 #endif |
91 void close(); | 91 void close(); |
92 | 92 |
93 bool isHTML() const { return m_isHTML; } | 93 bool isHTML() const { return m_isHTML; } |
94 void setHTML(bool isHTML) { m_isHTML = isHTML; } | 94 void setHTML(bool isHTML) { m_isHTML = isHTML; } |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 #if ENABLE(NOTIFICATIONS) | 206 #if ENABLE(NOTIFICATIONS) |
207 OwnPtr<Timer<Notification> > m_taskTimer; | 207 OwnPtr<Timer<Notification> > m_taskTimer; |
208 #endif | 208 #endif |
209 }; | 209 }; |
210 | 210 |
211 } // namespace WebCore | 211 } // namespace WebCore |
212 | 212 |
213 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) | 213 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) |
214 | 214 |
215 #endif // Notifications_h | 215 #endif // Notifications_h |
OLD | NEW |