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

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

Issue 36823002: Remove deprecated method Notification::detachPresenter() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 1 month 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 | « no previous file | Source/web/WebNotification.cpp » ('j') | 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) 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // EventTarget interface 115 // EventTarget interface
116 virtual const AtomicString& interfaceName() const OVERRIDE; 116 virtual const AtomicString& interfaceName() const OVERRIDE;
117 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD OMObject::executionContext(); } 117 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD OMObject::executionContext(); }
118 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; 118 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE;
119 119
120 // ActiveDOMObject interface 120 // ActiveDOMObject interface
121 virtual void contextDestroyed(); 121 virtual void contextDestroyed();
122 122
123 void stopLoadingIcon(); 123 void stopLoadingIcon();
124 124
125 // Deprecated. Use functions from NotificationCenter.
126 void detachPresenter() { }
127
128 void finalize(); 125 void finalize();
129 126
130 static const String& permission(ExecutionContext*); 127 static const String& permission(ExecutionContext*);
131 static const String& permissionString(NotificationClient::Permission); 128 static const String& permissionString(NotificationClient::Permission);
132 static void requestPermission(ExecutionContext*, PassRefPtr<NotificationPerm issionCallback> = 0); 129 static void requestPermission(ExecutionContext*, PassRefPtr<NotificationPerm issionCallback> = 0);
133 130
134 private: 131 private:
135 #if ENABLE(LEGACY_NOTIFICATIONS) 132 #if ENABLE(LEGACY_NOTIFICATIONS)
136 Notification(const String& title, const String& body, const String& iconURI, ExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter>); 133 Notification(const String& title, const String& body, const String& iconURI, ExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter>);
137 #endif 134 #endif
(...skipping 24 matching lines...) Expand all
162 NotificationState m_state; 159 NotificationState m_state;
163 160
164 NotificationClient* m_notificationClient; 161 NotificationClient* m_notificationClient;
165 162
166 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner; 163 OwnPtr<AsyncMethodRunner<Notification> > m_asyncRunner;
167 }; 164 };
168 165
169 } // namespace WebCore 166 } // namespace WebCore
170 167
171 #endif // Notifications_h 168 #endif // Notifications_h
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebNotification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698