| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 PlainTextRange getSelectionOffsets() const; | 93 PlainTextRange getSelectionOffsets() const; |
| 94 // Returns true if setting selection to specified offsets, otherwise false. | 94 // Returns true if setting selection to specified offsets, otherwise false. |
| 95 bool setEditableSelectionOffsets( | 95 bool setEditableSelectionOffsets( |
| 96 const PlainTextRange&, | 96 const PlainTextRange&, |
| 97 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); | 97 FrameSelection::SetSelectionOptions = FrameSelection::CloseTyping); |
| 98 void extendSelectionAndDelete(int before, int after); | 98 void extendSelectionAndDelete(int before, int after); |
| 99 PlainTextRange createRangeForSelection(int start, | 99 PlainTextRange createRangeForSelection(int start, |
| 100 int end, | 100 int end, |
| 101 size_t textLength) const; | 101 size_t textLength) const; |
| 102 void deleteSurroundingText(int before, int after); | 102 void deleteSurroundingText(int before, int after); |
| 103 void deleteSurroundingTextInCodePoints(int before, int after); |
| 103 WebTextInputInfo textInputInfo() const; | 104 WebTextInputInfo textInputInfo() const; |
| 104 WebTextInputType textInputType() const; | 105 WebTextInputType textInputType() const; |
| 105 | 106 |
| 106 // Call this when we will change focus. | 107 // Call this when we will change focus. |
| 107 void willChangeFocus(); | 108 void willChangeFocus(); |
| 108 | 109 |
| 109 private: | 110 private: |
| 110 Document& document() const; | 111 Document& document() const; |
| 111 bool isAvailable() const; | 112 bool isAvailable() const; |
| 112 | 113 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 int textInputFlags() const; | 148 int textInputFlags() const; |
| 148 WebTextInputMode inputModeOfFocusedElement() const; | 149 WebTextInputMode inputModeOfFocusedElement() const; |
| 149 | 150 |
| 150 // Implements |SynchronousMutationObserver|. | 151 // Implements |SynchronousMutationObserver|. |
| 151 void contextDestroyed() final; | 152 void contextDestroyed() final; |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace blink | 155 } // namespace blink |
| 155 | 156 |
| 156 #endif // InputMethodController_h | 157 #endif // InputMethodController_h |
| OLD | NEW |