| 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 19 matching lines...) Expand all Loading... |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 CompositionEventInit::CompositionEventInit() | 32 CompositionEventInit::CompositionEventInit() |
| 33 { | 33 { |
| 34 } | 34 } |
| 35 | 35 |
| 36 CompositionEvent::CompositionEvent() | 36 CompositionEvent::CompositionEvent() |
| 37 : m_activeSegmentStart(0) | 37 : m_activeSegmentStart(0) |
| 38 , m_activeSegmentEnd(0) | 38 , m_activeSegmentEnd(0) |
| 39 { | 39 { |
| 40 ScriptWrappable::init(this); | |
| 41 initializeSegments(); | 40 initializeSegments(); |
| 42 } | 41 } |
| 43 | 42 |
| 44 CompositionEvent::CompositionEvent(const AtomicString& type, PassRefPtrWillBeRaw
Ptr<AbstractView> view, const String& data, const Vector<CompositionUnderline>&
underlines) | 43 CompositionEvent::CompositionEvent(const AtomicString& type, PassRefPtrWillBeRaw
Ptr<AbstractView> view, const String& data, const Vector<CompositionUnderline>&
underlines) |
| 45 : UIEvent(type, true, true, view, 0) | 44 : UIEvent(type, true, true, view, 0) |
| 46 , m_data(data) | 45 , m_data(data) |
| 47 , m_activeSegmentStart(0) | 46 , m_activeSegmentStart(0) |
| 48 , m_activeSegmentEnd(0) | 47 , m_activeSegmentEnd(0) |
| 49 { | 48 { |
| 50 ScriptWrappable::init(this); | |
| 51 initializeSegments(&underlines); | 49 initializeSegments(&underlines); |
| 52 } | 50 } |
| 53 | 51 |
| 54 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv
entInit& initializer) | 52 CompositionEvent::CompositionEvent(const AtomicString& type, const CompositionEv
entInit& initializer) |
| 55 : UIEvent(type, initializer) | 53 : UIEvent(type, initializer) |
| 56 , m_data(initializer.data) | 54 , m_data(initializer.data) |
| 57 , m_activeSegmentStart(0) | 55 , m_activeSegmentStart(0) |
| 58 , m_activeSegmentEnd(0) | 56 , m_activeSegmentEnd(0) |
| 59 { | 57 { |
| 60 ScriptWrappable::init(this); | |
| 61 initializeSegments(); | 58 initializeSegments(); |
| 62 } | 59 } |
| 63 | 60 |
| 64 CompositionEvent::~CompositionEvent() | 61 CompositionEvent::~CompositionEvent() |
| 65 { | 62 { |
| 66 } | 63 } |
| 67 | 64 |
| 68 void CompositionEvent::initCompositionEvent(const AtomicString& type, bool canBu
bble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, const String&
data) | 65 void CompositionEvent::initCompositionEvent(const AtomicString& type, bool canBu
bble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, const String&
data) |
| 69 { | 66 { |
| 70 if (dispatched()) | 67 if (dispatched()) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 { | 99 { |
| 103 return EventNames::CompositionEvent; | 100 return EventNames::CompositionEvent; |
| 104 } | 101 } |
| 105 | 102 |
| 106 void CompositionEvent::trace(Visitor* visitor) | 103 void CompositionEvent::trace(Visitor* visitor) |
| 107 { | 104 { |
| 108 UIEvent::trace(visitor); | 105 UIEvent::trace(visitor); |
| 109 } | 106 } |
| 110 | 107 |
| 111 } // namespace blink | 108 } // namespace blink |
| OLD | NEW |