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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 int relativeCaretPosition); | 78 int relativeCaretPosition); |
79 | 79 |
80 // Inserts ongoing composing text; changes the selection to the end of | 80 // Inserts ongoing composing text; changes the selection to the end of |
81 // the inserting text if DoNotKeepSelection, or holds the selection if | 81 // the inserting text if DoNotKeepSelection, or holds the selection if |
82 // KeepSelection. | 82 // KeepSelection. |
83 bool finishComposingText(ConfirmCompositionBehavior); | 83 bool finishComposingText(ConfirmCompositionBehavior); |
84 | 84 |
85 // Deletes the existing composition text. | 85 // Deletes the existing composition text. |
86 void cancelComposition(); | 86 void cancelComposition(); |
87 | 87 |
88 void cancelCompositionIfSelectionIsInvalid(); | |
89 EphemeralRange compositionEphemeralRange() const; | 88 EphemeralRange compositionEphemeralRange() const; |
90 Range* compositionRange() const; | 89 Range* compositionRange() const; |
91 | 90 |
92 void clear(); | 91 void clear(); |
93 void documentAttached(Document*); | 92 void documentAttached(Document*); |
94 | 93 |
95 PlainTextRange getSelectionOffsets() const; | 94 PlainTextRange getSelectionOffsets() const; |
96 // Returns true if setting selection to specified offsets, otherwise false. | 95 // Returns true if setting selection to specified offsets, otherwise false. |
97 bool setEditableSelectionOffsets( | 96 bool setEditableSelectionOffsets( |
98 const PlainTextRange&, | 97 const PlainTextRange&, |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 int textInputFlags() const; | 161 int textInputFlags() const; |
163 WebTextInputMode inputModeOfFocusedElement() const; | 162 WebTextInputMode inputModeOfFocusedElement() const; |
164 | 163 |
165 // Implements |SynchronousMutationObserver|. | 164 // Implements |SynchronousMutationObserver|. |
166 void contextDestroyed(Document*) final; | 165 void contextDestroyed(Document*) final; |
167 }; | 166 }; |
168 | 167 |
169 } // namespace blink | 168 } // namespace blink |
170 | 169 |
171 #endif // InputMethodController_h | 170 #endif // InputMethodController_h |
OLD | NEW |