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

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

Issue 1241613004: Rework dispatchEvent so it is consistent for isTrusted support. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Work around MSVC optimization bug Created 5 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 0b6d3df0236518c4de6866310567be8a9be55252..e922eb9227fbdd6c7178da3884fdc23287de9b70 100644
--- a/Source/modules/notifications/Notification.h
+++ b/Source/modules/notifications/Notification.h
@@ -105,7 +105,6 @@ public:
// EventTarget interface.
ExecutionContext* executionContext() const final { return ActiveDOMObject::executionContext(); }
- bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) final;
const AtomicString& interfaceName() const override;
// ActiveDOMObject interface.
@@ -114,6 +113,10 @@ public:
DECLARE_VIRTUAL_TRACE();
+protected:
+ // EventTarget interface.
+ bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) final;
+
private:
Notification(const String& title, ExecutionContext*);

Powered by Google App Engine
This is Rietveld 408576698