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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 explicit InputMethodController(LocalFrame&); | 119 explicit InputMethodController(LocalFrame&); |
120 | 120 |
121 Editor& editor() const; | 121 Editor& editor() const; |
122 LocalFrame& frame() const { | 122 LocalFrame& frame() const { |
123 DCHECK(m_frame); | 123 DCHECK(m_frame); |
124 return *m_frame; | 124 return *m_frame; |
125 } | 125 } |
126 | 126 |
127 String composingText() const; | 127 String composingText() const; |
128 void selectComposition() const; | 128 void selectComposition() const; |
| 129 |
| 130 EphemeralRange ephemeralRangeForOffsets(const PlainTextRange&) const; |
| 131 |
129 bool setSelectionOffsets( | 132 bool setSelectionOffsets( |
130 const PlainTextRange&, | 133 const PlainTextRange&, |
131 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); | 134 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); |
132 | 135 |
133 void addCompositionUnderlines(const Vector<CompositionUnderline>& underlines, | 136 void addCompositionUnderlines(const Vector<CompositionUnderline>& underlines, |
134 ContainerNode* rootEditableElement, | 137 ContainerNode* rootEditableElement, |
135 unsigned offset); | 138 unsigned offset); |
136 | 139 |
137 bool insertText(const String&); | 140 bool insertText(const String&); |
138 bool insertTextAndMoveCaret(const String&, | 141 bool insertTextAndMoveCaret(const String&, |
(...skipping 19 matching lines...) Expand all Loading... |
158 int textInputFlags() const; | 161 int textInputFlags() const; |
159 WebTextInputMode inputModeOfFocusedElement() const; | 162 WebTextInputMode inputModeOfFocusedElement() const; |
160 | 163 |
161 // Implements |SynchronousMutationObserver|. | 164 // Implements |SynchronousMutationObserver|. |
162 void contextDestroyed(Document*) final; | 165 void contextDestroyed(Document*) final; |
163 }; | 166 }; |
164 | 167 |
165 } // namespace blink | 168 } // namespace blink |
166 | 169 |
167 #endif // InputMethodController_h | 170 #endif // InputMethodController_h |
OLD | NEW |