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

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

Issue 169293002: Oilpan: Remove GC_INFO_{DEFINE,DECLARE} macros (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixheaptest Created 6 years, 10 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) 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 30 matching lines...) Expand all
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 class ExceptionState; 44 class ExceptionState;
45 class ExecutionContext; 45 class ExecutionContext;
46 class NotificationCenter; 46 class NotificationCenter;
47 47
48 // Implementation of the legacy notification API as specified the following page : 48 // Implementation of the legacy notification API as specified the following page :
49 // http://chromium.org/developers/design-documents/desktop-notifications/api-spe cification 49 // http://chromium.org/developers/design-documents/desktop-notifications/api-spe cification
50 class WebKitNotification FINAL : public RefCountedWillBeRefCountedGarbageCollect ed<WebKitNotification>, public NotificationBase { 50 class WebKitNotification FINAL : public RefCountedWillBeRefCountedGarbageCollect ed<WebKitNotification>, public NotificationBase {
51 DECLARE_GC_INFO;
52 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<W ebKitNotification>); 51 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<W ebKitNotification>);
53 52
54 public: 53 public:
55 static PassRefPtrWillBeRawPtr<WebKitNotification> create(const String& title , const String& body, const String& iconUrl, ExecutionContext*, ExceptionState&, PassRefPtrWillBeRawPtr<NotificationCenter> provider); 54 static PassRefPtrWillBeRawPtr<WebKitNotification> create(const String& title , const String& body, const String& iconUrl, ExecutionContext*, ExceptionState&, PassRefPtrWillBeRawPtr<NotificationCenter> provider);
56 55
57 virtual ~WebKitNotification(); 56 virtual ~WebKitNotification();
58 57
59 void cancel() { close(); } 58 void cancel() { close(); }
60 59
61 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(display, show); 60 DEFINE_MAPPED_ATTRIBUTE_EVENT_LISTENER(display, show);
62 61
63 String replaceId() const { return tag(); } 62 String replaceId() const { return tag(); }
64 void setReplaceId(const String& replaceId) { setTag(replaceId); } 63 void setReplaceId(const String& replaceId) { setTag(replaceId); }
65 64
66 // EventTarget interface 65 // EventTarget interface
67 virtual const AtomicString& interfaceName() const OVERRIDE; 66 virtual const AtomicString& interfaceName() const OVERRIDE;
68 67
69 void trace(Visitor*) { } 68 void trace(Visitor*) { }
70 69
71 private: 70 private:
72 WebKitNotification(const String& title, const String& body, const String& ic onUrl, ExecutionContext*, ExceptionState&, PassRefPtrWillBeRawPtr<NotificationCe nter> provider); 71 WebKitNotification(const String& title, const String& body, const String& ic onUrl, ExecutionContext*, ExceptionState&, PassRefPtrWillBeRawPtr<NotificationCe nter> provider);
73 }; 72 };
74 73
75 } // namespace WebCore 74 } // namespace WebCore
76 75
77 #endif // ENABLE(LEGACY_NOTIFICATIONS) 76 #endif // ENABLE(LEGACY_NOTIFICATIONS)
78 77
79 #endif // WebKitNotification_h 78 #endif // WebKitNotification_h
OLDNEW
« no previous file with comments | « Source/modules/notifications/NotificationCenter.cpp ('k') | Source/modules/notifications/WebKitNotification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698