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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // selectionBehavior. | 186 // selectionBehavior. |
187 virtual bool finishComposingText( | 187 virtual bool finishComposingText( |
188 WebInputMethodController::ConfirmCompositionBehavior selectionBehavior) { | 188 WebInputMethodController::ConfirmCompositionBehavior selectionBehavior) { |
189 return false; | 189 return false; |
190 } | 190 } |
191 | 191 |
192 // Deletes the current selection plus the specified number of characters | 192 // Deletes the current selection plus the specified number of characters |
193 // before and after the selection or caret. | 193 // before and after the selection or caret. |
194 virtual void extendSelectionAndDelete(int before, int after) {} | 194 virtual void extendSelectionAndDelete(int before, int after) {} |
195 // Deletes text before and after the current cursor position, excluding the | 195 // Deletes text before and after the current cursor position, excluding the |
196 // selection. | 196 // selection. The lengths are supplied in Java chars, not in code points or in |
| 197 // glyphs. |
197 virtual void deleteSurroundingText(int before, int after) {} | 198 virtual void deleteSurroundingText(int before, int after) {} |
| 199 // Deletes text before and after the current cursor position, excluding the |
| 200 // selection. The lengths are supplied in code points, not in Java chars or in |
| 201 // glyphs. Do nothing if there are one or more invalid surrogate pairs in the |
| 202 // requested range. |
| 203 virtual void deleteSurroundingTextInCodePoints(int before, int after) {} |
198 // If the given position is over a link, returns the absolute url. | 204 // If the given position is over a link, returns the absolute url. |
199 // Otherwise an empty url is returned. | 205 // Otherwise an empty url is returned. |
200 virtual WebURL linkAtPosition(const WebPoint& position) const { | 206 virtual WebURL linkAtPosition(const WebPoint& position) const { |
201 return WebURL(); | 207 return WebURL(); |
202 } | 208 } |
203 | 209 |
204 // Find interface. | 210 // Find interface. |
205 // Start a new search. The plugin should search for a little bit at a time so | 211 // Start a new search. The plugin should search for a little bit at a time so |
206 // that it doesn't block the thread in case of a large document. The results, | 212 // that it doesn't block the thread in case of a large document. The results, |
207 // along with the find's identifier, should be sent asynchronously to | 213 // along with the find's identifier, should be sent asynchronously to |
(...skipping 19 matching lines...) Expand all Loading... |
227 | 233 |
228 virtual bool isPlaceholder() { return true; } | 234 virtual bool isPlaceholder() { return true; } |
229 | 235 |
230 protected: | 236 protected: |
231 ~WebPlugin() {} | 237 ~WebPlugin() {} |
232 }; | 238 }; |
233 | 239 |
234 } // namespace blink | 240 } // namespace blink |
235 | 241 |
236 #endif | 242 #endif |
OLD | NEW |