OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |