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/WebLocalFrame.h

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Address dcheng@'s review Created 3 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include <set> 8 #include <set>
9 #include "WebCompositionUnderline.h" 9 #include "WebCompositionUnderline.h"
10 #include "WebFrame.h" 10 #include "WebFrame.h"
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 virtual void setCaretVisible(bool) = 0; 334 virtual void setCaretVisible(bool) = 0;
335 335
336 // Moves the selection extent point. This function does not allow the 336 // Moves the selection extent point. This function does not allow the
337 // selection to collapse. If the new extent is set to the same position as 337 // selection to collapse. If the new extent is set to the same position as
338 // the current base, this function will do nothing. 338 // the current base, this function will do nothing.
339 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; 339 virtual void moveRangeSelectionExtent(const WebPoint&) = 0;
340 // Replaces the selection with the input string. 340 // Replaces the selection with the input string.
341 virtual void replaceSelection(const WebString&) = 0; 341 virtual void replaceSelection(const WebString&) = 0;
342 // Deletes text before and after the current cursor position, excluding the 342 // Deletes text before and after the current cursor position, excluding the
343 // selection. 343 // selection. The lengths are supplied in UTF-16 Code Unit, not in code points
344 // or in glyphs.
344 virtual void deleteSurroundingText(int before, int after) = 0; 345 virtual void deleteSurroundingText(int before, int after) = 0;
346 // A variant of deleteSurroundingText(int, int). Major differences are:
347 // 1. The lengths are supplied in code points, not in UTF-16 Code Unit or in
348 // glyphs.
349 // 2. This method does nothing if there are one or more invalid surrogate
350 // pairs in the requested range.
351 virtual void deleteSurroundingTextInCodePoints(int before, int after) = 0;
345 352
346 virtual void extractSmartClipData(WebRect rectInViewport, 353 virtual void extractSmartClipData(WebRect rectInViewport,
347 WebString& clipText, 354 WebString& clipText,
348 WebString& clipHtml) = 0; 355 WebString& clipHtml) = 0;
349 356
350 // Spell-checking support ------------------------------------------------- 357 // Spell-checking support -------------------------------------------------
351 virtual void replaceMisspelledRange(const WebString&) = 0; 358 virtual void replaceMisspelledRange(const WebString&) = 0;
352 virtual void enableSpellChecking(bool) = 0; 359 virtual void enableSpellChecking(bool) = 0;
353 virtual bool isSpellCheckingEnabled() const = 0; 360 virtual bool isSpellCheckingEnabled() const = 0;
354 virtual void removeSpellingMarkers() = 0; 361 virtual void removeSpellingMarkers() = 0;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 // to call these on a WebLocalFrame. 516 // to call these on a WebLocalFrame.
510 bool isWebLocalFrame() const override = 0; 517 bool isWebLocalFrame() const override = 0;
511 WebLocalFrame* toWebLocalFrame() override = 0; 518 WebLocalFrame* toWebLocalFrame() override = 0;
512 bool isWebRemoteFrame() const override = 0; 519 bool isWebRemoteFrame() const override = 0;
513 WebRemoteFrame* toWebRemoteFrame() override = 0; 520 WebRemoteFrame* toWebRemoteFrame() override = 0;
514 }; 521 };
515 522
516 } // namespace blink 523 } // namespace blink
517 524
518 #endif // WebLocalFrame_h 525 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/data/input_field_populated.html ('k') | third_party/WebKit/public/web/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698