Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: third_party/WebKit/Source/web/WebInputMethodControllerImpl.h

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 // WebInputMethodController overrides. 29 // WebInputMethodController overrides.
30 bool setComposition(const WebString& text, 30 bool setComposition(const WebString& text,
31 const WebVector<WebCompositionUnderline>& underlines, 31 const WebVector<WebCompositionUnderline>& underlines,
32 int selectionStart, 32 int selectionStart,
33 int selectionEnd) override; 33 int selectionEnd) override;
34 bool commitText(const WebString& text, 34 bool commitText(const WebString& text,
35 const WebVector<WebCompositionUnderline>& underlines, 35 const WebVector<WebCompositionUnderline>& underlines,
36 int relativeCaretPosition) override; 36 int relativeCaretPosition) override;
37 bool finishComposingText( 37 bool finishComposingText(
38 ConfirmCompositionBehavior selectionBehavior) override; 38 ConfirmCompositionBehavior selectionBehavior) override;
39 void applySuggestionReplacement(int documentMarkerID,
40 int suggestionIndex) override;
41 void deleteSuggestionHighlight() override;
42 void closeSuggestionMenu() override;
39 WebTextInputInfo textInputInfo() override; 43 WebTextInputInfo textInputInfo() override;
40 WebTextInputType textInputType() override; 44 WebTextInputType textInputType() override;
45 WebVector<WebTextSuggestionInfo> getTextSuggestionInfosUnderCaret() override;
46 void prepareForTextSuggestionMenuToBeShown() override;
41 47
42 void setSuppressNextKeypressEvent(bool suppress) { 48 void setSuppressNextKeypressEvent(bool suppress) {
43 m_suppressNextKeypressEvent = suppress; 49 m_suppressNextKeypressEvent = suppress;
44 } 50 }
45 51
46 DECLARE_TRACE(); 52 DECLARE_TRACE();
47 53
48 private: 54 private:
49 LocalFrame* frame() const; 55 LocalFrame* frame() const;
50 InputMethodController& inputMethodController() const; 56 InputMethodController& inputMethodController() const;
51 WebPlugin* focusedPluginIfInputMethodSupported() const; 57 WebPlugin* focusedPluginIfInputMethodSupported() const;
52 58
53 WeakMember<WebLocalFrameImpl> m_webLocalFrame; 59 WeakMember<WebLocalFrameImpl> m_webLocalFrame;
54 bool m_suppressNextKeypressEvent; 60 bool m_suppressNextKeypressEvent;
55 }; 61 };
56 } // namespace blink 62 } // namespace blink
57 63
58 #endif 64 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698