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

Unified Diff: Source/modules/notifications/Notification.h

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/notifications/Notification.h
diff --git a/Source/modules/notifications/Notification.h b/Source/modules/notifications/Notification.h
index 80a2b3d5a833f8d14805895465c12dc1e08c7823..2b85a1dcc3185c8887935e4d57026943a6ec7a96 100644
--- a/Source/modules/notifications/Notification.h
+++ b/Source/modules/notifications/Notification.h
@@ -55,7 +55,6 @@
namespace WebCore {
class Dictionary;
-class ExceptionState;
class NotificationCenter;
class NotificationPermissionCallback;
class ResourceError;
@@ -63,13 +62,15 @@ class ResourceResponse;
class ScriptExecutionContext;
class ThreadableLoader;
+typedef int ExceptionCode;
+
class Notification : public RefCounted<Notification>, public ScriptWrappable, public ActiveDOMObject, public EventTarget {
WTF_MAKE_FAST_ALLOCATED;
public:
Notification();
#if ENABLE(LEGACY_NOTIFICATIONS)
- static PassRefPtr<Notification> create(const KURL&, ScriptExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter> provider);
- static PassRefPtr<Notification> create(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter> provider);
+ static PassRefPtr<Notification> create(const KURL&, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter> provider);
+ static PassRefPtr<Notification> create(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter> provider);
#endif
#if ENABLE(NOTIFICATIONS)
static PassRefPtr<Notification> create(ScriptExecutionContext*, const String& title, const Dictionary& options);
@@ -151,8 +152,8 @@ public:
private:
#if ENABLE(LEGACY_NOTIFICATIONS)
- Notification(const KURL&, ScriptExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter>);
- Notification(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionState&, PassRefPtr<NotificationCenter>);
+ Notification(const KURL&, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter>);
+ Notification(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter>);
#endif
#if ENABLE(NOTIFICATIONS)
Notification(ScriptExecutionContext*, const String& title);
« no previous file with comments | « Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp ('k') | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698