| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 int textInputFlags() const; | 157 int textInputFlags() const; |
| 159 WebTextInputMode inputModeOfFocusedElement() const; | 158 WebTextInputMode inputModeOfFocusedElement() const; |
| 160 | 159 |
| 161 // Implements |SynchronousMutationObserver|. | 160 // Implements |SynchronousMutationObserver|. |
| 162 void contextDestroyed(Document*) final; | 161 void contextDestroyed(Document*) final; |
| 163 }; | 162 }; |
| 164 | 163 |
| 165 } // namespace blink | 164 } // namespace blink |
| 166 | 165 |
| 167 #endif // InputMethodController_h | 166 #endif // InputMethodController_h |
| OLD | NEW |