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

Side by Side 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, 3 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/FullscreenElementStack.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) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // cancelable. 81 // cancelable.
82 // http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.ht ml#fire-a-simple-event 82 // http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.ht ml#fire-a-simple-event
83 static PassRefPtr<Event> create(const AtomicString& type) 83 static PassRefPtr<Event> create(const AtomicString& type)
84 { 84 {
85 return adoptRef(new Event(type, false, false)); 85 return adoptRef(new Event(type, false, false));
86 } 86 }
87 static PassRefPtr<Event> createCancelable(const AtomicString& type) 87 static PassRefPtr<Event> createCancelable(const AtomicString& type)
88 { 88 {
89 return adoptRef(new Event(type, false, true)); 89 return adoptRef(new Event(type, false, true));
90 } 90 }
91 static PassRefPtr<Event> createBubble(const AtomicString& type)
92 {
93 return adoptRef(new Event(type, true, false));
94 }
91 static PassRefPtr<Event> create(const AtomicString& type, bool canBubble, bo ol cancelable) 95 static PassRefPtr<Event> create(const AtomicString& type, bool canBubble, bo ol cancelable)
92 { 96 {
93 return adoptRef(new Event(type, canBubble, cancelable)); 97 return adoptRef(new Event(type, canBubble, cancelable));
94 } 98 }
95 99
96 static PassRefPtr<Event> create(const AtomicString& type, const EventInit& i nitializer) 100 static PassRefPtr<Event> create(const AtomicString& type, const EventInit& i nitializer)
97 { 101 {
98 return adoptRef(new Event(type, initializer)); 102 return adoptRef(new Event(type, initializer));
99 } 103 }
100 104
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 EventTarget* m_currentTarget; 203 EventTarget* m_currentTarget;
200 RefPtr<EventTarget> m_target; 204 RefPtr<EventTarget> m_target;
201 DOMTimeStamp m_createTime; 205 DOMTimeStamp m_createTime;
202 RefPtr<Event> m_underlyingEvent; 206 RefPtr<Event> m_underlyingEvent;
203 EventPath m_eventPath; 207 EventPath m_eventPath;
204 }; 208 };
205 209
206 } // namespace WebCore 210 } // namespace WebCore
207 211
208 #endif // Event_h 212 #endif // Event_h
OLDNEW
« 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