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

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

Issue 2568093003: Support parsing BackgroundSpans and UnderlineSpans in Android IME's commitText() (Closed)
Patch Set: Fix commitText() logic (I think) Created 4 years 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 17 matching lines...) Expand all
28 28
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 34
35 // Used to ask the WebInputMethodController to either delete and ongoing 35 // Used to ask the WebInputMethodController to either delete and ongoing
36 // composition, or insert the specified text, or move the caret according to 36 // composition, or insert the specified text, or move the caret according to
37 // relativeCaretPosition. 37 // relativeCaretPosition.
38 bool commitText(const WebString& text, int relativeCaretPosition) override; 38 bool commitText(const WebString& text,
39 const WebVector<WebCompositionUnderline>& underlines,
40 int relativeCaretPosition) override;
39 41
40 // Called to ask the WebInputMethodController to confirm an ongoing 42 // Called to ask the WebInputMethodController to confirm an ongoing
41 // composition. 43 // composition.
42 bool finishComposingText( 44 bool finishComposingText(
43 ConfirmCompositionBehavior selectionBehavior) override; 45 ConfirmCompositionBehavior selectionBehavior) override;
44 46
45 void setSuppressNextKeypressEvent(bool suppress) { 47 void setSuppressNextKeypressEvent(bool suppress) {
46 m_suppressNextKeypressEvent = suppress; 48 m_suppressNextKeypressEvent = suppress;
47 } 49 }
48 50
49 DECLARE_TRACE(); 51 DECLARE_TRACE();
50 52
51 private: 53 private:
52 LocalFrame* frame() const; 54 LocalFrame* frame() const;
53 InputMethodController& inputMethodController() const; 55 InputMethodController& inputMethodController() const;
54 WebPlugin* focusedPluginIfInputMethodSupported() const; 56 WebPlugin* focusedPluginIfInputMethodSupported() const;
55 57
56 WeakMember<WebLocalFrameImpl> m_webLocalFrame; 58 WeakMember<WebLocalFrameImpl> m_webLocalFrame;
57 bool m_suppressNextKeypressEvent; 59 bool m_suppressNextKeypressEvent;
58 }; 60 };
59 } // namespace blink 61 } // namespace blink
60 62
61 #endif 63 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698