OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 * 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 if (initializer.hasData()) | 44 if (initializer.hasData()) |
45 m_data = initializer.data(); | 45 m_data = initializer.data(); |
46 } | 46 } |
47 | 47 |
48 CompositionEvent::~CompositionEvent() | 48 CompositionEvent::~CompositionEvent() |
49 { | 49 { |
50 } | 50 } |
51 | 51 |
52 void CompositionEvent::initCompositionEvent(const AtomicString& type, bool canBu
bble, bool cancelable, AbstractView* view, const String& data) | 52 void CompositionEvent::initCompositionEvent(const AtomicString& type, bool canBu
bble, bool cancelable, AbstractView* view, const String& data) |
53 { | 53 { |
54 if (dispatched()) | 54 if (isBeingDispatched()) |
55 return; | 55 return; |
56 | 56 |
57 initUIEvent(type, canBubble, cancelable, view, 0); | 57 initUIEvent(type, canBubble, cancelable, view, 0); |
58 | 58 |
59 m_data = data; | 59 m_data = data; |
60 } | 60 } |
61 | 61 |
62 const AtomicString& CompositionEvent::interfaceName() const | 62 const AtomicString& CompositionEvent::interfaceName() const |
63 { | 63 { |
64 return EventNames::CompositionEvent; | 64 return EventNames::CompositionEvent; |
65 } | 65 } |
66 | 66 |
67 DEFINE_TRACE(CompositionEvent) | 67 DEFINE_TRACE(CompositionEvent) |
68 { | 68 { |
69 UIEvent::trace(visitor); | 69 UIEvent::trace(visitor); |
70 } | 70 } |
71 | 71 |
72 } // namespace blink | 72 } // namespace blink |
OLD | NEW |