Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: Source/modules/notifications/Notification.h

Issue 22909013: Notification should not leak document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update testexp Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void dispatchCloseEvent(); 116 void dispatchCloseEvent();
117 void dispatchErrorEvent(); 117 void dispatchErrorEvent();
118 void dispatchShowEvent(); 118 void dispatchShowEvent();
119 119
120 using RefCounted<Notification>::ref; 120 using RefCounted<Notification>::ref;
121 using RefCounted<Notification>::deref; 121 using RefCounted<Notification>::deref;
122 122
123 // EventTarget interface 123 // EventTarget interface
124 virtual const AtomicString& interfaceName() const; 124 virtual const AtomicString& interfaceName() const;
125 virtual ScriptExecutionContext* scriptExecutionContext() const { return Acti veDOMObject::scriptExecutionContext(); } 125 virtual ScriptExecutionContext* scriptExecutionContext() const { return Acti veDOMObject::scriptExecutionContext(); }
126 virtual bool dispatchEvent(PassRefPtr<Event>);
126 127
127 // ActiveDOMObject interface 128 // ActiveDOMObject interface
128 virtual void contextDestroyed(); 129 virtual void contextDestroyed();
129 130
130 void stopLoadingIcon(); 131 void stopLoadingIcon();
131 132
132 // Deprecated. Use functions from NotificationCenter. 133 // Deprecated. Use functions from NotificationCenter.
133 void detachPresenter() { } 134 void detachPresenter() { }
134 135
135 void finalize(); 136 void finalize();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 #if ENABLE(NOTIFICATIONS) 188 #if ENABLE(NOTIFICATIONS)
188 OwnPtr<Timer<Notification> > m_taskTimer; 189 OwnPtr<Timer<Notification> > m_taskTimer;
189 #endif 190 #endif
190 }; 191 };
191 192
192 } // namespace WebCore 193 } // namespace WebCore
193 194
194 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) 195 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
195 196
196 #endif // Notifications_h 197 #endif // Notifications_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/notifications/resources/notification-show.html ('k') | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698