| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebInputMethodController_h | 5 #ifndef WebInputMethodController_h |
| 6 #define WebInputMethodController_h | 6 #define WebInputMethodController_h |
| 7 | 7 |
| 8 #include "public/platform/WebTextInputInfo.h" | 8 #include "public/platform/WebTextInputInfo.h" |
| 9 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
| 10 #include "WebTextInputType.h" | 10 #include "WebTextInputType.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 ConfirmCompositionBehavior selection_behavior) = 0; | 53 ConfirmCompositionBehavior selection_behavior) = 0; |
| 54 | 54 |
| 55 // Returns information about the current text input of this controller. Note | 55 // Returns information about the current text input of this controller. Note |
| 56 // that this query can be expensive for long fields, as it returns the | 56 // that this query can be expensive for long fields, as it returns the |
| 57 // plain-text representation of the current editable element. Consider using | 57 // plain-text representation of the current editable element. Consider using |
| 58 // the lighter-weight textInputType() when appropriate. | 58 // the lighter-weight textInputType() when appropriate. |
| 59 virtual WebTextInputInfo TextInputInfo() { return WebTextInputInfo(); } | 59 virtual WebTextInputInfo TextInputInfo() { return WebTextInputInfo(); } |
| 60 | 60 |
| 61 // Returns the type of current text input of this controller. | 61 // Returns the type of current text input of this controller. |
| 62 virtual WebTextInputType TextInputType() { return kWebTextInputTypeNone; } | 62 virtual WebTextInputType TextInputType() { return kWebTextInputTypeNone; } |
| 63 |
| 64 // Fetch the current selection range of this frame. |
| 65 virtual WebRange GetSelectionOffsets() const = 0; |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 } // namespace blink | 68 } // namespace blink |
| 66 #endif | 69 #endif |
| OLD | NEW |