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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 PlainTextRange getSelectionOffsets() const; | 95 PlainTextRange getSelectionOffsets() const; |
96 // Returns true if setting selection to specified offsets, otherwise false. | 96 // Returns true if setting selection to specified offsets, otherwise false. |
97 bool setEditableSelectionOffsets( | 97 bool setEditableSelectionOffsets( |
98 const PlainTextRange&, | 98 const PlainTextRange&, |
99 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); | 99 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); |
100 void extendSelectionAndDelete(int before, int after); | 100 void extendSelectionAndDelete(int before, int after); |
101 PlainTextRange createRangeForSelection(int start, | 101 PlainTextRange createRangeForSelection(int start, |
102 int end, | 102 int end, |
103 size_t textLength) const; | 103 size_t textLength) const; |
104 void deleteSurroundingText(int before, int after); | 104 void deleteSurroundingText(int before, int after); |
| 105 void deleteSurroundingTextInCodePoints(int before, int after); |
105 WebTextInputInfo textInputInfo() const; | 106 WebTextInputInfo textInputInfo() const; |
106 WebTextInputType textInputType() const; | 107 WebTextInputType textInputType() const; |
107 | 108 |
108 // Call this when we will change focus. | 109 // Call this when we will change focus. |
109 void willChangeFocus(); | 110 void willChangeFocus(); |
110 | 111 |
111 private: | 112 private: |
112 Document& document() const; | 113 Document& document() const; |
113 bool isAvailable() const; | 114 bool isAvailable() const; |
114 | 115 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 int textInputFlags() const; | 159 int textInputFlags() const; |
159 WebTextInputMode inputModeOfFocusedElement() const; | 160 WebTextInputMode inputModeOfFocusedElement() const; |
160 | 161 |
161 // Implements |SynchronousMutationObserver|. | 162 // Implements |SynchronousMutationObserver|. |
162 void contextDestroyed(Document*) final; | 163 void contextDestroyed(Document*) final; |
163 }; | 164 }; |
164 | 165 |
165 } // namespace blink | 166 } // namespace blink |
166 | 167 |
167 #endif // InputMethodController_h | 168 #endif // InputMethodController_h |
OLD | NEW |