OLD | NEW |
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 174 |
175 | 175 |
176 // Selection -------------------------------------------------------------- | 176 // Selection -------------------------------------------------------------- |
177 | 177 |
178 // Moves the selection extent point. This function does not allow the | 178 // Moves the selection extent point. This function does not allow the |
179 // selection to collapse. If the new extent is set to the same position as | 179 // selection to collapse. If the new extent is set to the same position as |
180 // the current base, this function will do nothing. | 180 // the current base, this function will do nothing. |
181 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; | 181 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; |
182 // Replaces the selection with the input string. | 182 // Replaces the selection with the input string. |
183 virtual void replaceSelection(const WebString&) = 0; | 183 virtual void replaceSelection(const WebString&) = 0; |
| 184 // Deletes text before and after the current cursor position, excluding the
selection. |
| 185 virtual void deleteSurroundingText(int before, int after) = 0; |
184 | 186 |
185 // Spell-checking support ------------------------------------------------- | 187 // Spell-checking support ------------------------------------------------- |
186 virtual void replaceMisspelledRange(const WebString&) = 0; | 188 virtual void replaceMisspelledRange(const WebString&) = 0; |
187 | 189 |
188 // Content Settings ------------------------------------------------------- | 190 // Content Settings ------------------------------------------------------- |
189 | 191 |
190 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; | 192 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; |
191 | 193 |
192 // App banner ------------------------------------------------------------- | 194 // App banner ------------------------------------------------------------- |
193 | 195 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 // to call these on a WebLocalFrame. | 352 // to call these on a WebLocalFrame. |
351 bool isWebLocalFrame() const override = 0; | 353 bool isWebLocalFrame() const override = 0; |
352 WebLocalFrame* toWebLocalFrame() override = 0; | 354 WebLocalFrame* toWebLocalFrame() override = 0; |
353 bool isWebRemoteFrame() const override = 0; | 355 bool isWebRemoteFrame() const override = 0; |
354 WebRemoteFrame* toWebRemoteFrame() override = 0; | 356 WebRemoteFrame* toWebRemoteFrame() override = 0; |
355 }; | 357 }; |
356 | 358 |
357 } // namespace blink | 359 } // namespace blink |
358 | 360 |
359 #endif // WebLocalFrame_h | 361 #endif // WebLocalFrame_h |
OLD | NEW |