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

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

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Don't convert utf8 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 Java chars, not in code points or in
yosin_UTC9 2017/02/09 07:19:28 s/Java chars/UTF-16 Code Unit/ Blink doesn't know
yabinh 2017/02/09 10:37:04 Done.
327 // 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 Java chars or in glyphs.
yosin_UTC9 2017/02/09 07:19:28 s/Java chars/UTF-16 Code Unit/ Blink doesn't know
yabinh 2017/02/09 10:37:04 Done.
331 // 2. This method does nothing if there are one or more invalid surrogate
332 // pairs in the requested range.
333 virtual void deleteSurroundingTextInCodePoints(int before, int after) = 0;
328 334
329 virtual void extractSmartClipData(WebRect rectInViewport, 335 virtual void extractSmartClipData(WebRect rectInViewport,
330 WebString& clipText, 336 WebString& clipText,
331 WebString& clipHtml) = 0; 337 WebString& clipHtml) = 0;
332 338
333 // Spell-checking support ------------------------------------------------- 339 // Spell-checking support -------------------------------------------------
334 virtual void replaceMisspelledRange(const WebString&) = 0; 340 virtual void replaceMisspelledRange(const WebString&) = 0;
335 virtual void enableSpellChecking(bool) = 0; 341 virtual void enableSpellChecking(bool) = 0;
336 virtual bool isSpellCheckingEnabled() const = 0; 342 virtual bool isSpellCheckingEnabled() const = 0;
337 virtual void removeSpellingMarkers() = 0; 343 virtual void removeSpellingMarkers() = 0;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // to call these on a WebLocalFrame. 498 // to call these on a WebLocalFrame.
493 bool isWebLocalFrame() const override = 0; 499 bool isWebLocalFrame() const override = 0;
494 WebLocalFrame* toWebLocalFrame() override = 0; 500 WebLocalFrame* toWebLocalFrame() override = 0;
495 bool isWebRemoteFrame() const override = 0; 501 bool isWebRemoteFrame() const override = 0;
496 WebRemoteFrame* toWebRemoteFrame() override = 0; 502 WebRemoteFrame* toWebRemoteFrame() override = 0;
497 }; 503 };
498 504
499 } // namespace blink 505 } // namespace blink
500 506
501 #endif // WebLocalFrame_h 507 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698