| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 , m_shouldSmartReplace(false) | 67 , m_shouldSmartReplace(false) |
| 68 , m_shouldMatchStyle(false) | 68 , m_shouldMatchStyle(false) |
| 69 { | 69 { |
| 70 ScriptWrappable::init(this); | 70 ScriptWrappable::init(this); |
| 71 } | 71 } |
| 72 | 72 |
| 73 TextEvent::TextEvent(PassRefPtr<AbstractView> view, const String& data, TextEven
tInputType inputType) | 73 TextEvent::TextEvent(PassRefPtr<AbstractView> view, const String& data, TextEven
tInputType inputType) |
| 74 : UIEvent(eventNames().textInputEvent, true, true, view, 0) | 74 : UIEvent(eventNames().textInputEvent, true, true, view, 0) |
| 75 , m_inputType(inputType) | 75 , m_inputType(inputType) |
| 76 , m_data(data) | 76 , m_data(data) |
| 77 , m_pastingFragment(0) | |
| 78 , m_shouldSmartReplace(false) | 77 , m_shouldSmartReplace(false) |
| 79 , m_shouldMatchStyle(false) | 78 , m_shouldMatchStyle(false) |
| 80 { | 79 { |
| 81 ScriptWrappable::init(this); | 80 ScriptWrappable::init(this); |
| 82 } | 81 } |
| 83 | 82 |
| 84 TextEvent::TextEvent(PassRefPtr<AbstractView> view, const String& data, const Ha
ndle<DocumentFragment>& pastingFragment, | 83 TextEvent::TextEvent(PassRefPtr<AbstractView> view, const String& data, const Ha
ndle<DocumentFragment>& pastingFragment, |
| 85 bool shouldSmartReplace, bool shouldMatchStyle) | 84 bool shouldSmartReplace, bool shouldMatchStyle) |
| 86 : UIEvent(eventNames().textInputEvent, true, true, view, 0) | 85 : UIEvent(eventNames().textInputEvent, true, true, view, 0) |
| 87 , m_inputType(TextEventInputPaste) | 86 , m_inputType(TextEventInputPaste) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 { | 121 { |
| 123 return eventNames().interfaceForTextEvent; | 122 return eventNames().interfaceForTextEvent; |
| 124 } | 123 } |
| 125 | 124 |
| 126 Result<DocumentFragment> TextEvent::pastingFragment() const | 125 Result<DocumentFragment> TextEvent::pastingFragment() const |
| 127 { | 126 { |
| 128 return m_pastingFragment; | 127 return m_pastingFragment; |
| 129 } | 128 } |
| 130 | 129 |
| 131 } // namespace WebCore | 130 } // namespace WebCore |
| OLD | NEW |