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

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

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use a different method to handle "\n" node Created 4 years, 5 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 "WebFrame.h" 8 #include "WebFrame.h"
9 #include "WebFrameLoadType.h" 9 #include "WebFrameLoadType.h"
10 10
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 virtual void extendSelectionAndDelete(int before, int after) = 0; 248 virtual void extendSelectionAndDelete(int before, int after) = 0;
249 249
250 virtual void setCaretVisible(bool) = 0; 250 virtual void setCaretVisible(bool) = 0;
251 251
252 // Moves the selection extent point. This function does not allow the 252 // Moves the selection extent point. This function does not allow the
253 // selection to collapse. If the new extent is set to the same position as 253 // selection to collapse. If the new extent is set to the same position as
254 // the current base, this function will do nothing. 254 // the current base, this function will do nothing.
255 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; 255 virtual void moveRangeSelectionExtent(const WebPoint&) = 0;
256 // Replaces the selection with the input string. 256 // Replaces the selection with the input string.
257 virtual void replaceSelection(const WebString&) = 0; 257 virtual void replaceSelection(const WebString&) = 0;
258 // Deletes text before and after the current cursor position, excluding the selection.
259 virtual void deleteSurroundingText(int before, int after) = 0;
258 260
259 // Spell-checking support ------------------------------------------------- 261 // Spell-checking support -------------------------------------------------
260 virtual void replaceMisspelledRange(const WebString&) = 0; 262 virtual void replaceMisspelledRange(const WebString&) = 0;
261 virtual void enableContinuousSpellChecking(bool) = 0; 263 virtual void enableContinuousSpellChecking(bool) = 0;
262 virtual bool isContinuousSpellCheckingEnabled() const = 0; 264 virtual bool isContinuousSpellCheckingEnabled() const = 0;
263 virtual void requestTextChecking(const WebElement&) = 0; 265 virtual void requestTextChecking(const WebElement&) = 0;
264 virtual void removeSpellingMarkers() = 0; 266 virtual void removeSpellingMarkers() = 0;
265 267
266 // Content Settings ------------------------------------------------------- 268 // Content Settings -------------------------------------------------------
267 269
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // to call these on a WebLocalFrame. 430 // to call these on a WebLocalFrame.
429 bool isWebLocalFrame() const override = 0; 431 bool isWebLocalFrame() const override = 0;
430 WebLocalFrame* toWebLocalFrame() override = 0; 432 WebLocalFrame* toWebLocalFrame() override = 0;
431 bool isWebRemoteFrame() const override = 0; 433 bool isWebRemoteFrame() const override = 0;
432 WebRemoteFrame* toWebRemoteFrame() override = 0; 434 WebRemoteFrame* toWebRemoteFrame() override = 0;
433 }; 435 };
434 436
435 } // namespace blink 437 } // namespace blink
436 438
437 #endif // WebLocalFrame_h 439 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698