OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...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 CustomEventInit::CustomEventInit() | 33 CustomEventInit::CustomEventInit() |
34 { | 34 { |
35 } | 35 } |
36 | 36 |
37 CustomEvent::CustomEvent() | 37 CustomEvent::CustomEvent() |
38 { | 38 { |
| 39 ScriptWrappable::init(this); |
39 } | 40 } |
40 | 41 |
41 CustomEvent::CustomEvent(const AtomicString& type, const CustomEventInit& initia
lizer) | 42 CustomEvent::CustomEvent(const AtomicString& type, const CustomEventInit& initia
lizer) |
42 : Event(type, initializer) | 43 : Event(type, initializer) |
43 , m_detail(initializer.detail) | 44 , m_detail(initializer.detail) |
44 { | 45 { |
| 46 ScriptWrappable::init(this); |
45 } | 47 } |
46 | 48 |
47 CustomEvent::~CustomEvent() | 49 CustomEvent::~CustomEvent() |
48 { | 50 { |
49 } | 51 } |
50 | 52 |
51 void CustomEvent::initCustomEvent(const AtomicString& type, bool canBubble, bool
cancelable, const ScriptValue& detail) | 53 void CustomEvent::initCustomEvent(const AtomicString& type, bool canBubble, bool
cancelable, const ScriptValue& detail) |
52 { | 54 { |
53 ASSERT(!m_serializedScriptValue.get()); | 55 ASSERT(!m_serializedScriptValue.get()); |
54 if (dispatched()) | 56 if (dispatched()) |
(...skipping 14 matching lines...) Expand all Loading... |
69 | 71 |
70 m_serializedScriptValue = serializedScriptValue; | 72 m_serializedScriptValue = serializedScriptValue; |
71 } | 73 } |
72 | 74 |
73 const AtomicString& CustomEvent::interfaceName() const | 75 const AtomicString& CustomEvent::interfaceName() const |
74 { | 76 { |
75 return eventNames().interfaceForCustomEvent; | 77 return eventNames().interfaceForCustomEvent; |
76 } | 78 } |
77 | 79 |
78 } // namespace WebCore | 80 } // namespace WebCore |
OLD | NEW |