| 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 14 matching lines...) Expand all Loading... |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "core/events/CompositionEvent.h" | 27 #include "core/events/CompositionEvent.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 CompositionEvent::CompositionEvent() | 31 CompositionEvent::CompositionEvent() |
| 32 { | 32 { |
| 33 } | 33 } |
| 34 | 34 |
| 35 CompositionEvent::CompositionEvent(const AtomicString& type, PassRefPtrWillBeRaw
Ptr<AbstractView> view, const String& data) | 35 CompositionEvent::CompositionEvent(const AtomicString& type, RawPtr<AbstractView
> view, const String& data) |
| 36 : UIEvent(type, true, true, view, 0, InputDeviceCapabilities::doesntFireTouc
hEventsSourceCapabilities()) | 36 : UIEvent(type, true, true, view, 0, InputDeviceCapabilities::doesntFireTouc
hEventsSourceCapabilities()) |
| 37 , m_data(data) | 37 , m_data(data) |
| 38 { | 38 { |
| 39 } | 39 } |
| 40 | 40 |
| 41 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv
entInit& initializer) | 41 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv
entInit& initializer) |
| 42 : UIEvent(type, initializer) | 42 : UIEvent(type, initializer) |
| 43 { | 43 { |
| 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, PassRefPtrWillBeRawPtr<AbstractView> view, const String&
data) | 52 void CompositionEvent::initCompositionEvent(const AtomicString& type, bool canBu
bble, bool cancelable, RawPtr<AbstractView> view, const String& data) |
| 53 { | 53 { |
| 54 if (dispatched()) | 54 if (dispatched()) |
| 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 |