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

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: handle multi-code text with BackspaceStateMachine::previousPositionOf Created 4 years, 7 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 183
184 // Selection -------------------------------------------------------------- 184 // Selection --------------------------------------------------------------
185 185
186 // Moves the selection extent point. This function does not allow the 186 // Moves the selection extent point. This function does not allow the
187 // selection to collapse. If the new extent is set to the same position as 187 // selection to collapse. If the new extent is set to the same position as
188 // the current base, this function will do nothing. 188 // the current base, this function will do nothing.
189 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; 189 virtual void moveRangeSelectionExtent(const WebPoint&) = 0;
190 // Replaces the selection with the input string. 190 // Replaces the selection with the input string.
191 virtual void replaceSelection(const WebString&) = 0; 191 virtual void replaceSelection(const WebString&) = 0;
192 // Deletes text before and after the current cursor position, excluding the selection.
193 virtual void deleteSurroundingText(int before, int after) = 0;
192 194
193 // Spell-checking support ------------------------------------------------- 195 // Spell-checking support -------------------------------------------------
194 virtual void replaceMisspelledRange(const WebString&) = 0; 196 virtual void replaceMisspelledRange(const WebString&) = 0;
195 197
196 // Content Settings ------------------------------------------------------- 198 // Content Settings -------------------------------------------------------
197 199
198 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; 200 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0;
199 201
200 // App banner ------------------------------------------------------------- 202 // App banner -------------------------------------------------------------
201 203
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // to call these on a WebLocalFrame. 330 // to call these on a WebLocalFrame.
329 bool isWebLocalFrame() const override = 0; 331 bool isWebLocalFrame() const override = 0;
330 WebLocalFrame* toWebLocalFrame() override = 0; 332 WebLocalFrame* toWebLocalFrame() override = 0;
331 bool isWebRemoteFrame() const override = 0; 333 bool isWebRemoteFrame() const override = 0;
332 WebRemoteFrame* toWebRemoteFrame() override = 0; 334 WebRemoteFrame* toWebRemoteFrame() override = 0;
333 }; 335 };
334 336
335 } // namespace blink 337 } // namespace blink
336 338
337 #endif // WebLocalFrame_h 339 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698