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 15 matching lines...) Expand all Loading... |
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, AbstractView* view,
const String& data) | 35 CompositionEvent::CompositionEvent(const AtomicString& type, AbstractView* view,
const String& data) |
36 : UIEvent(type, true, true, view, 0, InputDeviceCapabilities::doesntFireTouc
hEventsSourceCapabilities()) | 36 : UIEvent(type, true, true, ComposedMode::Composed, view, 0, InputDeviceCapa
bilities::doesntFireTouchEventsSourceCapabilities()) |
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 } |
(...skipping 16 matching lines...) Expand all Loading... |
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 |