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

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

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address yosin@'s review Created 4 years, 2 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
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Confirms an ongoing composition; holds or moves selections accroding to 188 // Confirms an ongoing composition; holds or moves selections accroding to
189 // selectionBehavior. 189 // selectionBehavior.
190 virtual bool finishComposingText( 190 virtual bool finishComposingText(
191 WebWidget::ConfirmCompositionBehavior selectionBehavior) { 191 WebWidget::ConfirmCompositionBehavior selectionBehavior) {
192 return false; 192 return false;
193 } 193 }
194 194
195 // Deletes the current selection plus the specified number of characters 195 // Deletes the current selection plus the specified number of characters
196 // before and after the selection or caret. 196 // before and after the selection or caret.
197 virtual void extendSelectionAndDelete(int before, int after) {} 197 virtual void extendSelectionAndDelete(int before, int after) {}
198 // Deletes text before and after the current cursor position, excluding the
199 // selection.
200 virtual void deleteSurroundingText(int before, int after) {}
198 // If the given position is over a link, returns the absolute url. 201 // If the given position is over a link, returns the absolute url.
199 // Otherwise an empty url is returned. 202 // Otherwise an empty url is returned.
200 virtual WebURL linkAtPosition(const WebPoint& position) const { 203 virtual WebURL linkAtPosition(const WebPoint& position) const {
201 return WebURL(); 204 return WebURL();
202 } 205 }
203 206
204 // Find interface. 207 // Find interface.
205 // Start a new search. The plugin should search for a little bit at a time so 208 // 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, 209 // 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 210 // along with the find's identifier, should be sent asynchronously to
(...skipping 19 matching lines...) Expand all
227 230
228 virtual bool isPlaceholder() { return true; } 231 virtual bool isPlaceholder() { return true; }
229 232
230 protected: 233 protected:
231 ~WebPlugin() {} 234 ~WebPlugin() {}
232 }; 235 };
233 236
234 } // namespace blink 237 } // namespace blink
235 238
236 #endif 239 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698