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