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

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

Issue 2568093003: Support parsing BackgroundSpans and UnderlineSpans in Android IME's commitText() (Closed)
Patch Set: Use addCompositionUnderlines() where I said I couldn't Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/public/web/WebInputMethodController.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 virtual bool setComposition( 171 virtual bool setComposition(
172 const WebString& text, 172 const WebString& text,
173 const WebVector<WebCompositionUnderline>& underlines, 173 const WebVector<WebCompositionUnderline>& underlines,
174 int selectionStart, 174 int selectionStart,
175 int selectionEnd) { 175 int selectionEnd) {
176 return false; 176 return false;
177 } 177 }
178 178
179 // Deletes the ongoing composition if any, inserts the specified text, and 179 // Deletes the ongoing composition if any, inserts the specified text, and
180 // moves the caret according to relativeCaretPosition. 180 // moves the caret according to relativeCaretPosition.
181 virtual bool commitText(const WebString& text, int relativeCaretPosition) { 181 virtual bool commitText(const WebString& text,
182 const WebVector<WebCompositionUnderline>& underlines,
183 int relativeCaretPosition) {
182 return false; 184 return false;
183 } 185 }
184 186
185 // Confirms an ongoing composition; holds or moves selections accroding to 187 // Confirms an ongoing composition; holds or moves selections accroding to
186 // selectionBehavior. 188 // selectionBehavior.
187 virtual bool finishComposingText( 189 virtual bool finishComposingText(
188 WebInputMethodController::ConfirmCompositionBehavior selectionBehavior) { 190 WebInputMethodController::ConfirmCompositionBehavior selectionBehavior) {
189 return false; 191 return false;
190 } 192 }
191 193
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 229
228 virtual bool isPlaceholder() { return true; } 230 virtual bool isPlaceholder() { return true; }
229 231
230 protected: 232 protected:
231 ~WebPlugin() {} 233 ~WebPlugin() {}
232 }; 234 };
233 235
234 } // namespace blink 236 } // namespace blink
235 237
236 #endif 238 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebInputMethodController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698