| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 m_shouldSmartReplace(false), | 62 m_shouldSmartReplace(false), |
| 63 m_shouldMatchStyle(false) {} | 63 m_shouldMatchStyle(false) {} |
| 64 | 64 |
| 65 TextEvent::TextEvent(AbstractView* view, | 65 TextEvent::TextEvent(AbstractView* view, |
| 66 const String& data, | 66 const String& data, |
| 67 TextEventInputType inputType) | 67 TextEventInputType inputType) |
| 68 : UIEvent(EventTypeNames::textInput, | 68 : UIEvent(EventTypeNames::textInput, |
| 69 true, | 69 true, |
| 70 true, | 70 true, |
| 71 ComposedMode::Composed, | 71 ComposedMode::Composed, |
| 72 WTF::monotonicallyIncreasingTime(), | 72 TimeTicks::Now(), |
| 73 view, | 73 view, |
| 74 0, | 74 0, |
| 75 nullptr), | 75 nullptr), |
| 76 m_inputType(inputType), | 76 m_inputType(inputType), |
| 77 m_data(data), | 77 m_data(data), |
| 78 m_pastingFragment(nullptr), | 78 m_pastingFragment(nullptr), |
| 79 m_shouldSmartReplace(false), | 79 m_shouldSmartReplace(false), |
| 80 m_shouldMatchStyle(false) {} | 80 m_shouldMatchStyle(false) {} |
| 81 | 81 |
| 82 TextEvent::TextEvent(AbstractView* view, | 82 TextEvent::TextEvent(AbstractView* view, |
| 83 const String& data, | 83 const String& data, |
| 84 DocumentFragment* pastingFragment, | 84 DocumentFragment* pastingFragment, |
| 85 bool shouldSmartReplace, | 85 bool shouldSmartReplace, |
| 86 bool shouldMatchStyle) | 86 bool shouldMatchStyle) |
| 87 : UIEvent(EventTypeNames::textInput, | 87 : UIEvent(EventTypeNames::textInput, |
| 88 true, | 88 true, |
| 89 true, | 89 true, |
| 90 ComposedMode::Composed, | 90 ComposedMode::Composed, |
| 91 WTF::monotonicallyIncreasingTime(), | 91 TimeTicks::Now(), |
| 92 view, | 92 view, |
| 93 0, | 93 0, |
| 94 nullptr), | 94 nullptr), |
| 95 m_inputType(TextEventInputPaste), | 95 m_inputType(TextEventInputPaste), |
| 96 m_data(data), | 96 m_data(data), |
| 97 m_pastingFragment(pastingFragment), | 97 m_pastingFragment(pastingFragment), |
| 98 m_shouldSmartReplace(shouldSmartReplace), | 98 m_shouldSmartReplace(shouldSmartReplace), |
| 99 m_shouldMatchStyle(shouldMatchStyle) {} | 99 m_shouldMatchStyle(shouldMatchStyle) {} |
| 100 | 100 |
| 101 TextEvent::~TextEvent() {} | 101 TextEvent::~TextEvent() {} |
| (...skipping 14 matching lines...) Expand all Loading... |
| 116 const AtomicString& TextEvent::interfaceName() const { | 116 const AtomicString& TextEvent::interfaceName() const { |
| 117 return EventNames::TextEvent; | 117 return EventNames::TextEvent; |
| 118 } | 118 } |
| 119 | 119 |
| 120 DEFINE_TRACE(TextEvent) { | 120 DEFINE_TRACE(TextEvent) { |
| 121 visitor->trace(m_pastingFragment); | 121 visitor->trace(m_pastingFragment); |
| 122 UIEvent::trace(visitor); | 122 UIEvent::trace(visitor); |
| 123 } | 123 } |
| 124 | 124 |
| 125 } // namespace blink | 125 } // namespace blink |
| OLD | NEW |