| 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 24 matching lines...) Expand all Loading... |
| 35 CompositionEvent::CompositionEvent(const AtomicString& type, | 35 CompositionEvent::CompositionEvent(const AtomicString& type, |
| 36 AbstractView* view, | 36 AbstractView* view, |
| 37 const String& data) | 37 const String& data) |
| 38 : UIEvent(type, | 38 : UIEvent(type, |
| 39 true, | 39 true, |
| 40 true, | 40 true, |
| 41 ComposedMode::Composed, | 41 ComposedMode::Composed, |
| 42 TimeTicks::Now(), | 42 TimeTicks::Now(), |
| 43 view, | 43 view, |
| 44 0, | 44 0, |
| 45 view ? view->getInputDeviceCapabilities()->firesTouchEvents(false) | 45 InputDeviceCapabilities::None), |
| 46 : nullptr), | |
| 47 m_data(data) {} | 46 m_data(data) {} |
| 48 | 47 |
| 49 CompositionEvent::CompositionEvent(const AtomicString& type, | 48 CompositionEvent::CompositionEvent(const AtomicString& type, |
| 50 const CompositionEventInit& initializer) | 49 const CompositionEventInit& initializer) |
| 51 : UIEvent(type, initializer) { | 50 : UIEvent(type, initializer) { |
| 52 if (initializer.hasData()) | 51 if (initializer.hasData()) |
| 53 m_data = initializer.data(); | 52 m_data = initializer.data(); |
| 54 } | 53 } |
| 55 | 54 |
| 56 CompositionEvent::~CompositionEvent() {} | 55 CompositionEvent::~CompositionEvent() {} |
| (...skipping 13 matching lines...) Expand all Loading... |
| 70 | 69 |
| 71 const AtomicString& CompositionEvent::interfaceName() const { | 70 const AtomicString& CompositionEvent::interfaceName() const { |
| 72 return EventNames::CompositionEvent; | 71 return EventNames::CompositionEvent; |
| 73 } | 72 } |
| 74 | 73 |
| 75 DEFINE_TRACE(CompositionEvent) { | 74 DEFINE_TRACE(CompositionEvent) { |
| 76 UIEvent::trace(visitor); | 75 UIEvent::trace(visitor); |
| 77 } | 76 } |
| 78 | 77 |
| 79 } // namespace blink | 78 } // namespace blink |
| OLD | NEW |