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

Side by Side Diff: Source/core/html/canvas/WebGLContextEvent.cpp

Issue 799733002: Use event init dictionaries in core/{css,html} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 10 matching lines...) Expand all
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/html/canvas/WebGLContextEvent.h" 27 #include "core/html/canvas/WebGLContextEvent.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 WebGLContextEventInit::WebGLContextEventInit()
32 {
33 }
34
35 WebGLContextEvent::WebGLContextEvent() 31 WebGLContextEvent::WebGLContextEvent()
36 { 32 {
37 } 33 }
38 34
39 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, bool canBubble, b ool cancelable, const String& statusMessage) 35 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, bool canBubble, b ool cancelable, const String& statusMessage)
40 : Event(type, canBubble, cancelable) 36 : Event(type, canBubble, cancelable)
41 , m_statusMessage(statusMessage) 37 , m_statusMessage(statusMessage)
42 { 38 {
43 } 39 }
44 40
45 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, const WebGLContex tEventInit& initializer) 41 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, const WebGLContex tEventInit& initializer)
46 : Event(type, initializer) 42 : Event(type, initializer)
47 , m_statusMessage(initializer.statusMessage)
48 { 43 {
44 if (initializer.hasStatusMessage())
45 m_statusMessage = initializer.statusMessage();
49 } 46 }
50 47
51 WebGLContextEvent::~WebGLContextEvent() 48 WebGLContextEvent::~WebGLContextEvent()
52 { 49 {
53 } 50 }
54 51
55 const AtomicString& WebGLContextEvent::interfaceName() const 52 const AtomicString& WebGLContextEvent::interfaceName() const
56 { 53 {
57 return EventNames::WebGLContextEvent; 54 return EventNames::WebGLContextEvent;
58 } 55 }
59 56
60 void WebGLContextEvent::trace(Visitor* visitor) 57 void WebGLContextEvent::trace(Visitor* visitor)
61 { 58 {
62 Event::trace(visitor); 59 Event::trace(visitor);
63 } 60 }
64 61
65 } // namespace blink 62 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLContextEvent.h ('k') | Source/core/html/canvas/WebGLContextEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698