| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const PlainTextRange&, | 97 const PlainTextRange&, |
| 98 FrameSelection::SetSelectionOptions = FrameSelection::kCloseTyping); | 98 FrameSelection::SetSelectionOptions = FrameSelection::kCloseTyping); |
| 99 void ExtendSelectionAndDelete(int before, int after); | 99 void ExtendSelectionAndDelete(int before, int after); |
| 100 PlainTextRange CreateRangeForSelection(int start, | 100 PlainTextRange CreateRangeForSelection(int start, |
| 101 int end, | 101 int end, |
| 102 size_t text_length) const; | 102 size_t text_length) const; |
| 103 void DeleteSurroundingText(int before, int after); | 103 void DeleteSurroundingText(int before, int after); |
| 104 void DeleteSurroundingTextInCodePoints(int before, int after); | 104 void DeleteSurroundingTextInCodePoints(int before, int after); |
| 105 WebTextInputInfo TextInputInfo() const; | 105 WebTextInputInfo TextInputInfo() const; |
| 106 WebTextInputType TextInputType() const; | 106 WebTextInputType TextInputType() const; |
| 107 Element* NextFocusableElementInForm(Element*, WebFocusType) 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& GetDocument() const; | 113 Document& GetDocument() const; |
| 113 bool IsAvailable() const; | 114 bool IsAvailable() const; |
| 114 | 115 |
| 115 Member<LocalFrame> frame_; | 116 Member<LocalFrame> frame_; |
| 116 Member<Range> composition_range_; | 117 Member<Range> composition_range_; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 156 |
| 156 // Returns true if moved caret successfully. | 157 // Returns true if moved caret successfully. |
| 157 bool MoveCaret(int new_caret_position); | 158 bool MoveCaret(int new_caret_position); |
| 158 | 159 |
| 159 PlainTextRange CreateSelectionRangeForSetComposition( | 160 PlainTextRange CreateSelectionRangeForSetComposition( |
| 160 int selection_start, | 161 int selection_start, |
| 161 int selection_end, | 162 int selection_end, |
| 162 size_t text_length) const; | 163 size_t text_length) const; |
| 163 int TextInputFlags() const; | 164 int TextInputFlags() const; |
| 164 WebTextInputMode InputModeOfFocusedElement() const; | 165 WebTextInputMode InputModeOfFocusedElement() const; |
| 166 bool IsListeningToKeyboardEvents(Element*) const; |
| 165 | 167 |
| 166 // Implements |SynchronousMutationObserver|. | 168 // Implements |SynchronousMutationObserver|. |
| 167 void ContextDestroyed(Document*) final; | 169 void ContextDestroyed(Document*) final; |
| 168 }; | 170 }; |
| 169 | 171 |
| 170 } // namespace blink | 172 } // namespace blink |
| 171 | 173 |
| 172 #endif // InputMethodController_h | 174 #endif // InputMethodController_h |
| OLD | NEW |