| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void deleteSurroundingText(int before, int after); | 102 void deleteSurroundingText(int before, int after); |
| 103 WebTextInputInfo textInputInfo() const; | 103 WebTextInputInfo textInputInfo() const; |
| 104 WebTextInputType textInputType() const; | 104 WebTextInputType textInputType() const; |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 Document& document() const; | 107 Document& document() const; |
| 108 bool isAvailable() const; | 108 bool isAvailable() const; |
| 109 | 109 |
| 110 Member<LocalFrame> m_frame; | 110 Member<LocalFrame> m_frame; |
| 111 Member<Range> m_compositionRange; | 111 Member<Range> m_compositionRange; |
| 112 bool m_isDirty; | |
| 113 bool m_hasComposition; | 112 bool m_hasComposition; |
| 114 | 113 |
| 115 explicit InputMethodController(LocalFrame&); | 114 explicit InputMethodController(LocalFrame&); |
| 116 | 115 |
| 117 Editor& editor() const; | 116 Editor& editor() const; |
| 118 LocalFrame& frame() const { | 117 LocalFrame& frame() const { |
| 119 DCHECK(m_frame); | 118 DCHECK(m_frame); |
| 120 return *m_frame; | 119 return *m_frame; |
| 121 } | 120 } |
| 122 | 121 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 135 // Inserts the given text string in the place of the existing composition | 134 // Inserts the given text string in the place of the existing composition |
| 136 // and moves caret. Returns true if did replace and moved caret successfully. | 135 // and moves caret. Returns true if did replace and moved caret successfully. |
| 137 bool replaceCompositionAndMoveCaret(const String&, int relativeCaretPosition); | 136 bool replaceCompositionAndMoveCaret(const String&, int relativeCaretPosition); |
| 138 | 137 |
| 139 // Returns true if moved caret successfully. | 138 // Returns true if moved caret successfully. |
| 140 bool moveCaret(int newCaretPosition); | 139 bool moveCaret(int newCaretPosition); |
| 141 | 140 |
| 142 PlainTextRange createSelectionRangeForSetComposition(int selectionStart, | 141 PlainTextRange createSelectionRangeForSetComposition(int selectionStart, |
| 143 int selectionEnd, | 142 int selectionEnd, |
| 144 size_t textLength) const; | 143 size_t textLength) const; |
| 145 void setCompositionWithIncrementalText(const String&, | |
| 146 const Vector<CompositionUnderline>&, | |
| 147 int selectionStart, | |
| 148 int selectionEnd); | |
| 149 int textInputFlags() const; | 144 int textInputFlags() const; |
| 150 WebTextInputMode inputModeOfFocusedElement() const; | 145 WebTextInputMode inputModeOfFocusedElement() const; |
| 151 | 146 |
| 152 // Implements |SynchronousMutationObserver|. | 147 // Implements |SynchronousMutationObserver|. |
| 153 void contextDestroyed() final; | 148 void contextDestroyed() final; |
| 154 }; | 149 }; |
| 155 | 150 |
| 156 } // namespace blink | 151 } // namespace blink |
| 157 | 152 |
| 158 #endif // InputMethodController_h | 153 #endif // InputMethodController_h |
| OLD | NEW |