OLD | NEW |
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 18 matching lines...) Expand all Loading... |
29 #include "EventNames.h" | 29 #include "EventNames.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 WebGLContextEventInit::WebGLContextEventInit() | 33 WebGLContextEventInit::WebGLContextEventInit() |
34 { | 34 { |
35 } | 35 } |
36 | 36 |
37 WebGLContextEvent::WebGLContextEvent() | 37 WebGLContextEvent::WebGLContextEvent() |
38 { | 38 { |
| 39 ScriptWrappable::init(this); |
39 } | 40 } |
40 | 41 |
41 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, bool canBubble, b
ool cancelable, const String& statusMessage) | 42 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, bool canBubble, b
ool cancelable, const String& statusMessage) |
42 : Event(type, canBubble, cancelable) | 43 : Event(type, canBubble, cancelable) |
43 , m_statusMessage(statusMessage) | 44 , m_statusMessage(statusMessage) |
44 { | 45 { |
| 46 ScriptWrappable::init(this); |
45 } | 47 } |
46 | 48 |
47 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, const WebGLContex
tEventInit& initializer) | 49 WebGLContextEvent::WebGLContextEvent(const AtomicString& type, const WebGLContex
tEventInit& initializer) |
48 : Event(type, initializer) | 50 : Event(type, initializer) |
49 , m_statusMessage(initializer.statusMessage) | 51 , m_statusMessage(initializer.statusMessage) |
50 { | 52 { |
| 53 ScriptWrappable::init(this); |
51 } | 54 } |
52 | 55 |
53 WebGLContextEvent::~WebGLContextEvent() | 56 WebGLContextEvent::~WebGLContextEvent() |
54 { | 57 { |
55 } | 58 } |
56 | 59 |
57 const AtomicString& WebGLContextEvent::interfaceName() const | 60 const AtomicString& WebGLContextEvent::interfaceName() const |
58 { | 61 { |
59 return eventNames().interfaceForWebGLContextEvent; | 62 return eventNames().interfaceForWebGLContextEvent; |
60 } | 63 } |
61 | 64 |
62 } // namespace WebCore | 65 } // namespace WebCore |
OLD | NEW |