| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 const Vector<CompositionUnderline>& underlines, | 77 const Vector<CompositionUnderline>& underlines, |
| 78 int relative_caret_position); | 78 int relative_caret_position); |
| 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 void CancelCompositionIfSelectionIsInvalid(); |
| 87 | 88 |
| 88 EphemeralRange CompositionEphemeralRange() const; | 89 EphemeralRange CompositionEphemeralRange() const; |
| 89 Range* CompositionRange() const; | 90 Range* CompositionRange() const; |
| 90 | 91 |
| 91 void Clear(); | 92 void Clear(); |
| 92 void DocumentAttached(Document*); | 93 void DocumentAttached(Document*); |
| 93 | 94 |
| 94 PlainTextRange GetSelectionOffsets() const; | 95 PlainTextRange GetSelectionOffsets() const; |
| 95 // Returns true if setting selection to specified offsets, otherwise false. | 96 // Returns true if setting selection to specified offsets, otherwise false. |
| 96 bool SetEditableSelectionOffsets( | 97 bool SetEditableSelectionOffsets( |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 int TextInputFlags() const; | 164 int TextInputFlags() const; |
| 164 WebTextInputMode InputModeOfFocusedElement() const; | 165 WebTextInputMode InputModeOfFocusedElement() const; |
| 165 | 166 |
| 166 // Implements |SynchronousMutationObserver|. | 167 // Implements |SynchronousMutationObserver|. |
| 167 void ContextDestroyed(Document*) final; | 168 void ContextDestroyed(Document*) final; |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 } // namespace blink | 171 } // namespace blink |
| 171 | 172 |
| 172 #endif // InputMethodController_h | 173 #endif // InputMethodController_h |
| OLD | NEW |