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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 TextEvent::TextEvent() | 58 TextEvent::TextEvent() |
59 : m_inputType(TextEventInputKeyboard) | 59 : m_inputType(TextEventInputKeyboard) |
60 , m_shouldSmartReplace(false) | 60 , m_shouldSmartReplace(false) |
61 , m_shouldMatchStyle(false) | 61 , m_shouldMatchStyle(false) |
62 { | 62 { |
63 } | 63 } |
64 | 64 |
65 TextEvent::TextEvent(AbstractView* view, const String& data, TextEventInputType
inputType) | 65 TextEvent::TextEvent(AbstractView* view, const String& data, TextEventInputType
inputType) |
66 : UIEvent(EventTypeNames::textInput, true, true, view, 0) | 66 : UIEvent(EventTypeNames::textInput, true, true, ComposedMode::Composed, vie
w, 0) |
67 , m_inputType(inputType) | 67 , m_inputType(inputType) |
68 , m_data(data) | 68 , m_data(data) |
69 , m_pastingFragment(nullptr) | 69 , m_pastingFragment(nullptr) |
70 , m_shouldSmartReplace(false) | 70 , m_shouldSmartReplace(false) |
71 , m_shouldMatchStyle(false) | 71 , m_shouldMatchStyle(false) |
72 { | 72 { |
73 } | 73 } |
74 | 74 |
75 TextEvent::TextEvent(AbstractView* view, const String& data, DocumentFragment* p
astingFragment, | 75 TextEvent::TextEvent(AbstractView* view, const String& data, DocumentFragment* p
astingFragment, |
76 bool shouldSmartReplace, bool shouldMatchStyle) | 76 bool shouldSmartReplace, bool shouldMatchStyle) |
77 : UIEvent(EventTypeNames::textInput, true, true, view, 0) | 77 : UIEvent(EventTypeNames::textInput, true, true, ComposedMode::Composed, vie
w, 0) |
78 , m_inputType(TextEventInputPaste) | 78 , m_inputType(TextEventInputPaste) |
79 , m_data(data) | 79 , m_data(data) |
80 , m_pastingFragment(pastingFragment) | 80 , m_pastingFragment(pastingFragment) |
81 , m_shouldSmartReplace(shouldSmartReplace) | 81 , m_shouldSmartReplace(shouldSmartReplace) |
82 , m_shouldMatchStyle(shouldMatchStyle) | 82 , m_shouldMatchStyle(shouldMatchStyle) |
83 { | 83 { |
84 } | 84 } |
85 | 85 |
86 TextEvent::~TextEvent() | 86 TextEvent::~TextEvent() |
87 { | 87 { |
(...skipping 14 matching lines...) Expand all Loading... |
102 return EventNames::TextEvent; | 102 return EventNames::TextEvent; |
103 } | 103 } |
104 | 104 |
105 DEFINE_TRACE(TextEvent) | 105 DEFINE_TRACE(TextEvent) |
106 { | 106 { |
107 visitor->trace(m_pastingFragment); | 107 visitor->trace(m_pastingFragment); |
108 UIEvent::trace(visitor); | 108 UIEvent::trace(visitor); |
109 } | 109 } |
110 | 110 |
111 } // namespace blink | 111 } // namespace blink |
OLD | NEW |