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

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

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Address yosin@'s review Created 3 years, 10 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 "WebCompositionUnderline.h" 8 #include "WebCompositionUnderline.h"
9 #include "WebFrame.h" 9 #include "WebFrame.h"
10 #include "WebFrameLoadType.h" 10 #include "WebFrameLoadType.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 virtual void setCaretVisible(bool) = 0; 317 virtual void setCaretVisible(bool) = 0;
318 318
319 // Moves the selection extent point. This function does not allow the 319 // Moves the selection extent point. This function does not allow the
320 // selection to collapse. If the new extent is set to the same position as 320 // selection to collapse. If the new extent is set to the same position as
321 // the current base, this function will do nothing. 321 // the current base, this function will do nothing.
322 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; 322 virtual void moveRangeSelectionExtent(const WebPoint&) = 0;
323 // Replaces the selection with the input string. 323 // Replaces the selection with the input string.
324 virtual void replaceSelection(const WebString&) = 0; 324 virtual void replaceSelection(const WebString&) = 0;
325 // Deletes text before and after the current cursor position, excluding the 325 // Deletes text before and after the current cursor position, excluding the
326 // selection. 326 // selection. The lengths are supplied in UTF-16 Code Unit, not in code points
327 // or in glyphs.
327 virtual void deleteSurroundingText(int before, int after) = 0; 328 virtual void deleteSurroundingText(int before, int after) = 0;
329 // A variant of deleteSurroundingText(int, int). Major differences are:
330 // 1. The lengths are supplied in code points, not in UTF-16 Code Unit or in
331 // glyphs.
332 // 2. This method does nothing if there are one or more invalid surrogate
333 // pairs in the requested range.
334 virtual void deleteSurroundingTextInCodePoints(int before, int after) = 0;
328 335
329 virtual void extractSmartClipData(WebRect rectInViewport, 336 virtual void extractSmartClipData(WebRect rectInViewport,
330 WebString& clipText, 337 WebString& clipText,
331 WebString& clipHtml) = 0; 338 WebString& clipHtml) = 0;
332 339
333 // Spell-checking support ------------------------------------------------- 340 // Spell-checking support -------------------------------------------------
334 virtual void replaceMisspelledRange(const WebString&) = 0; 341 virtual void replaceMisspelledRange(const WebString&) = 0;
335 virtual void enableSpellChecking(bool) = 0; 342 virtual void enableSpellChecking(bool) = 0;
336 virtual bool isSpellCheckingEnabled() const = 0; 343 virtual bool isSpellCheckingEnabled() const = 0;
337 virtual void removeSpellingMarkers() = 0; 344 virtual void removeSpellingMarkers() = 0;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // to call these on a WebLocalFrame. 499 // to call these on a WebLocalFrame.
493 bool isWebLocalFrame() const override = 0; 500 bool isWebLocalFrame() const override = 0;
494 WebLocalFrame* toWebLocalFrame() override = 0; 501 WebLocalFrame* toWebLocalFrame() override = 0;
495 bool isWebRemoteFrame() const override = 0; 502 bool isWebRemoteFrame() const override = 0;
496 WebRemoteFrame* toWebRemoteFrame() override = 0; 503 WebRemoteFrame* toWebRemoteFrame() override = 0;
497 }; 504 };
498 505
499 } // namespace blink 506 } // namespace blink
500 507
501 #endif // WebLocalFrame_h 508 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698