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

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

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Convert UTF8 to UTF16 Created 3 years, 11 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 309
310 virtual void setCaretVisible(bool) = 0; 310 virtual void setCaretVisible(bool) = 0;
311 311
312 // Moves the selection extent point. This function does not allow the 312 // Moves the selection extent point. This function does not allow the
313 // selection to collapse. If the new extent is set to the same position as 313 // selection to collapse. If the new extent is set to the same position as
314 // the current base, this function will do nothing. 314 // the current base, this function will do nothing.
315 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; 315 virtual void moveRangeSelectionExtent(const WebPoint&) = 0;
316 // Replaces the selection with the input string. 316 // Replaces the selection with the input string.
317 virtual void replaceSelection(const WebString&) = 0; 317 virtual void replaceSelection(const WebString&) = 0;
318 // Deletes text before and after the current cursor position, excluding the 318 // Deletes text before and after the current cursor position, excluding the
319 // selection. 319 // selection. The lengths are supplied in Java chars, not in code points or in
320 // glyphs.
320 virtual void deleteSurroundingText(int before, int after) = 0; 321 virtual void deleteSurroundingText(int before, int after) = 0;
322 // A variant of deleteSurroundingText(int, int). Major differences are:
323 // 1. The lengths are supplied in code points, not in Java chars or in glyphs.
324 // 2. This method does nothing if there are one or more invalid surrogate
325 // pairs in the requested range.
326 virtual void deleteSurroundingTextInCodePoints(int before, int after) = 0;
321 327
322 // Spell-checking support ------------------------------------------------- 328 // Spell-checking support -------------------------------------------------
323 virtual void replaceMisspelledRange(const WebString&) = 0; 329 virtual void replaceMisspelledRange(const WebString&) = 0;
324 virtual void enableSpellChecking(bool) = 0; 330 virtual void enableSpellChecking(bool) = 0;
325 virtual bool isSpellCheckingEnabled() const = 0; 331 virtual bool isSpellCheckingEnabled() const = 0;
326 virtual void removeSpellingMarkers() = 0; 332 virtual void removeSpellingMarkers() = 0;
327 333
328 // Content Settings ------------------------------------------------------- 334 // Content Settings -------------------------------------------------------
329 335
330 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; 336 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // to call these on a WebLocalFrame. 487 // to call these on a WebLocalFrame.
482 bool isWebLocalFrame() const override = 0; 488 bool isWebLocalFrame() const override = 0;
483 WebLocalFrame* toWebLocalFrame() override = 0; 489 WebLocalFrame* toWebLocalFrame() override = 0;
484 bool isWebRemoteFrame() const override = 0; 490 bool isWebRemoteFrame() const override = 0;
485 WebRemoteFrame* toWebRemoteFrame() override = 0; 491 WebRemoteFrame* toWebRemoteFrame() override = 0;
486 }; 492 };
487 493
488 } // namespace blink 494 } // namespace blink
489 495
490 #endif // WebLocalFrame_h 496 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698