OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 PlainTextRange getSelectionOffsets() const; | 88 PlainTextRange getSelectionOffsets() const; |
89 // Returns true if setting selection to specified offsets, otherwise false. | 89 // Returns true if setting selection to specified offsets, otherwise false. |
90 bool setEditableSelectionOffsets( | 90 bool setEditableSelectionOffsets( |
91 const PlainTextRange&, | 91 const PlainTextRange&, |
92 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); | 92 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); |
93 void extendSelectionAndDelete(int before, int after); | 93 void extendSelectionAndDelete(int before, int after); |
94 PlainTextRange createRangeForSelection(int start, | 94 PlainTextRange createRangeForSelection(int start, |
95 int end, | 95 int end, |
96 size_t textLength) const; | 96 size_t textLength) const; |
| 97 void deleteSurroundingText(int before, int after); |
97 | 98 |
98 private: | 99 private: |
99 Member<LocalFrame> m_frame; | 100 Member<LocalFrame> m_frame; |
100 Member<Range> m_compositionRange; | 101 Member<Range> m_compositionRange; |
101 bool m_isDirty; | 102 bool m_isDirty; |
102 bool m_hasComposition; | 103 bool m_hasComposition; |
103 | 104 |
104 explicit InputMethodController(LocalFrame&); | 105 explicit InputMethodController(LocalFrame&); |
105 | 106 |
106 Editor& editor() const; | 107 Editor& editor() const; |
(...skipping 26 matching lines...) Expand all Loading... |
133 size_t textLength) const; | 134 size_t textLength) const; |
134 void setCompositionWithIncrementalText(const String&, | 135 void setCompositionWithIncrementalText(const String&, |
135 const Vector<CompositionUnderline>&, | 136 const Vector<CompositionUnderline>&, |
136 int selectionStart, | 137 int selectionStart, |
137 int selectionEnd); | 138 int selectionEnd); |
138 }; | 139 }; |
139 | 140 |
140 } // namespace blink | 141 } // namespace blink |
141 | 142 |
142 #endif // InputMethodController_h | 143 #endif // InputMethodController_h |
OLD | NEW |