| 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 "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "public/web/WebCompositionUnderline.h" | 9 #include "public/web/WebCompositionUnderline.h" |
| 10 #include "public/web/WebInputMethodController.h" | 10 #include "public/web/WebInputMethodController.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 int selection_end) override; | 35 int selection_end) override; |
| 36 bool CommitText(const WebString& text, | 36 bool CommitText(const WebString& text, |
| 37 const WebVector<WebCompositionUnderline>& underlines, | 37 const WebVector<WebCompositionUnderline>& underlines, |
| 38 const WebRange& replacement_range, | 38 const WebRange& replacement_range, |
| 39 int relative_caret_position) override; | 39 int relative_caret_position) override; |
| 40 bool FinishComposingText( | 40 bool FinishComposingText( |
| 41 ConfirmCompositionBehavior selection_behavior) override; | 41 ConfirmCompositionBehavior selection_behavior) override; |
| 42 WebTextInputInfo TextInputInfo() override; | 42 WebTextInputInfo TextInputInfo() override; |
| 43 WebTextInputType TextInputType() override; | 43 WebTextInputType TextInputType() override; |
| 44 | 44 |
| 45 void SetSuppressNextKeypressEvent(bool suppress) { | |
| 46 suppress_next_keypress_event_ = suppress; | |
| 47 } | |
| 48 | |
| 49 DECLARE_TRACE(); | 45 DECLARE_TRACE(); |
| 50 | 46 |
| 51 private: | 47 private: |
| 52 LocalFrame* GetFrame() const; | 48 LocalFrame* GetFrame() const; |
| 53 InputMethodController& GetInputMethodController() const; | 49 InputMethodController& GetInputMethodController() const; |
| 54 WebPlugin* FocusedPluginIfInputMethodSupported() const; | 50 WebPlugin* FocusedPluginIfInputMethodSupported() const; |
| 55 | 51 |
| 56 WeakMember<WebLocalFrameImpl> web_local_frame_; | 52 WeakMember<WebLocalFrameImpl> web_local_frame_; |
| 57 bool suppress_next_keypress_event_; | |
| 58 }; | 53 }; |
| 59 } // namespace blink | 54 } // namespace blink |
| 60 | 55 |
| 61 #endif | 56 #endif |
| OLD | NEW |