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

Unified Diff: Source/core/dom/Event.h

Issue 23714003: Refactoring: Add Event::createBubble. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/FullscreenElementStack.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Event.h
diff --git a/Source/core/dom/Event.h b/Source/core/dom/Event.h
index 7f705c42d7eb92af109a4f0c66cf63e374db1870..560ace8c42ef2cd9f92baf81695da05d986d2ec9 100644
--- a/Source/core/dom/Event.h
+++ b/Source/core/dom/Event.h
@@ -88,6 +88,10 @@ public:
{
return adoptRef(new Event(type, false, true));
}
+ static PassRefPtr<Event> createBubble(const AtomicString& type)
+ {
+ return adoptRef(new Event(type, true, false));
+ }
static PassRefPtr<Event> create(const AtomicString& type, bool canBubble, bool cancelable)
{
return adoptRef(new Event(type, canBubble, cancelable));
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/FullscreenElementStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698