| 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 |
| 132 // Returns true if selection offsets were successfully set. |
| 129 bool setSelectionOffsets( | 133 bool setSelectionOffsets( |
| 130 const PlainTextRange&, | 134 const PlainTextRange&, |
| 131 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); | 135 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); |
| 132 | 136 |
| 133 void addCompositionUnderlines(const Vector<CompositionUnderline>& underlines, | 137 void addCompositionUnderlines(const Vector<CompositionUnderline>& underlines, |
| 134 ContainerNode* rootEditableElement, | 138 ContainerNode* rootEditableElement, |
| 135 unsigned offset); | 139 unsigned offset); |
| 136 | 140 |
| 137 bool insertText(const String&); | 141 bool insertText(const String&); |
| 138 bool insertTextAndMoveCaret(const String&, | 142 bool insertTextAndMoveCaret(const String&, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 158 int textInputFlags() const; | 162 int textInputFlags() const; |
| 159 WebTextInputMode inputModeOfFocusedElement() const; | 163 WebTextInputMode inputModeOfFocusedElement() const; |
| 160 | 164 |
| 161 // Implements |SynchronousMutationObserver|. | 165 // Implements |SynchronousMutationObserver|. |
| 162 void contextDestroyed(Document*) final; | 166 void contextDestroyed(Document*) final; |
| 163 }; | 167 }; |
| 164 | 168 |
| 165 } // namespace blink | 169 } // namespace blink |
| 166 | 170 |
| 167 #endif // InputMethodController_h | 171 #endif // InputMethodController_h |
| OLD | NEW |