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

Side by Side Diff: Source/modules/notifications/NotificationCenter.cpp

Issue 23583043: Fix linking problem on Windows with ENABLE_LEGACY_NOTIFICATIONS disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: style fixup Created 7 years, 3 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
« no previous file with comments | « Source/modules/notifications/NotificationCenter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 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 13 matching lines...) Expand all
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #include "config.h" 32 #include "config.h"
33 33
34 #if ENABLE(LEGACY_NOTIFICATIONS)
35
34 #include "modules/notifications/NotificationCenter.h" 36 #include "modules/notifications/NotificationCenter.h"
35 37
36 #include "core/dom/Document.h" 38 #include "core/dom/Document.h"
37 #include "core/workers/WorkerGlobalScope.h" 39 #include "core/workers/WorkerGlobalScope.h"
38 #include "modules/notifications/NotificationClient.h" 40 #include "modules/notifications/NotificationClient.h"
39 #include "weborigin/SecurityOrigin.h" 41 #include "weborigin/SecurityOrigin.h"
40 42
41 namespace WebCore { 43 namespace WebCore {
42 44
43 PassRefPtr<NotificationCenter> NotificationCenter::create(ScriptExecutionContext * context, NotificationClient* client) 45 PassRefPtr<NotificationCenter> NotificationCenter::create(ScriptExecutionContext * context, NotificationClient* client)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 129 }
128 130
129 void NotificationCenter::NotificationRequestCallback::timerFired(Timer<Notificat ionCenter::NotificationRequestCallback>*) 131 void NotificationCenter::NotificationRequestCallback::timerFired(Timer<Notificat ionCenter::NotificationRequestCallback>*)
130 { 132 {
131 if (m_callback) 133 if (m_callback)
132 m_callback->handleEvent(); 134 m_callback->handleEvent();
133 m_notificationCenter->requestTimedOut(this); 135 m_notificationCenter->requestTimedOut(this);
134 } 136 }
135 137
136 } // namespace WebCore 138 } // namespace WebCore
139
140 #endif // ENABLE(LEGACY_NOTIFICATIONS)
OLDNEW
« no previous file with comments | « Source/modules/notifications/NotificationCenter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698