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

Side by Side Diff: third_party/WebKit/public/web/WebInputMethodController.h

Issue 2568093003: Support parsing BackgroundSpans and UnderlineSpans in Android IME's commitText() (Closed)
Patch Set: Attempt to fix dependency error with target Created 3 years, 12 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 WebInputMethodController_h 5 #ifndef WebInputMethodController_h
6 #define WebInputMethodController_h 6 #define WebInputMethodController_h
7 7
8 #include "WebCompositionUnderline.h" 8 #include "WebCompositionUnderline.h"
9 #include "WebWidget.h" 9 #include "WebWidget.h"
10 10
(...skipping 18 matching lines...) Expand all
29 // Returns true if the composition text was set successfully. 29 // Returns true if the composition text was set successfully.
30 virtual bool setComposition( 30 virtual bool setComposition(
31 const WebString& text, 31 const WebString& text,
32 const WebVector<WebCompositionUnderline>& underlines, 32 const WebVector<WebCompositionUnderline>& underlines,
33 int selectionStart, 33 int selectionStart,
34 int selectionEnd) = 0; 34 int selectionEnd) = 0;
35 35
36 // Called to inform the WebWidget that deleting the ongoing composition if 36 // Called to inform the WebWidget that deleting the ongoing composition if
37 // any, inserting the specified text, and moving the caret according to 37 // any, inserting the specified text, and moving the caret according to
38 // relativeCaretPosition. 38 // relativeCaretPosition.
39 virtual bool commitText(const WebString& text, int relativeCaretPosition) = 0; 39 virtual bool commitText(const WebString& text,
40 const WebVector<WebCompositionUnderline>& underlines,
41 int relativeCaretPosition) = 0;
40 42
41 // Called to inform the WebWidget to confirm an ongoing composition. 43 // Called to inform the WebWidget to confirm an ongoing composition.
42 virtual bool finishComposingText( 44 virtual bool finishComposingText(
43 ConfirmCompositionBehavior selectionBehavior) = 0; 45 ConfirmCompositionBehavior selectionBehavior) = 0;
44 }; 46 };
45 47
46 } // namespace blink 48 } // namespace blink
47 #endif 49 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698