| 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 WebInputMethodControllerImpl_h | 5 #ifndef WebInputMethodControllerImpl_h |
| 6 #define WebInputMethodControllerImpl_h | 6 #define WebInputMethodControllerImpl_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "platform/wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 int selection_start, | 36 int selection_start, |
| 37 int selection_end) override; | 37 int selection_end) override; |
| 38 bool CommitText(const WebString& text, | 38 bool CommitText(const WebString& text, |
| 39 const WebVector<WebCompositionUnderline>& underlines, | 39 const WebVector<WebCompositionUnderline>& underlines, |
| 40 const WebRange& replacement_range, | 40 const WebRange& replacement_range, |
| 41 int relative_caret_position) override; | 41 int relative_caret_position) override; |
| 42 bool FinishComposingText( | 42 bool FinishComposingText( |
| 43 ConfirmCompositionBehavior selection_behavior) override; | 43 ConfirmCompositionBehavior selection_behavior) override; |
| 44 WebTextInputInfo TextInputInfo() override; | 44 WebTextInputInfo TextInputInfo() override; |
| 45 WebTextInputType TextInputType() override; | 45 WebTextInputType TextInputType() override; |
| 46 WebRange GetSelectionOffsets() const; |
| 46 | 47 |
| 47 DECLARE_TRACE(); | 48 DECLARE_TRACE(); |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 LocalFrame* GetFrame() const; | 51 LocalFrame* GetFrame() const; |
| 51 InputMethodController& GetInputMethodController() const; | 52 InputMethodController& GetInputMethodController() const; |
| 52 WebPlugin* FocusedPluginIfInputMethodSupported() const; | 53 WebPlugin* FocusedPluginIfInputMethodSupported() const; |
| 53 | 54 |
| 54 const Member<WebLocalFrameBase> web_frame_; | 55 const Member<WebLocalFrameBase> web_frame_; |
| 55 }; | 56 }; |
| 56 } // namespace blink | 57 } // namespace blink |
| 57 | 58 |
| 58 #endif | 59 #endif |
| OLD | NEW |