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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 | 179 |
180 // Selection -------------------------------------------------------------- | 180 // Selection -------------------------------------------------------------- |
181 | 181 |
182 // Moves the selection extent point. This function does not allow the | 182 // Moves the selection extent point. This function does not allow the |
183 // selection to collapse. If the new extent is set to the same position as | 183 // selection to collapse. If the new extent is set to the same position as |
184 // the current base, this function will do nothing. | 184 // the current base, this function will do nothing. |
185 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; | 185 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; |
186 // Replaces the selection with the input string. | 186 // Replaces the selection with the input string. |
187 virtual void replaceSelection(const WebString&) = 0; | 187 virtual void replaceSelection(const WebString&) = 0; |
| 188 // Deletes text before and after the current cursor position, excluding the
selection. |
| 189 virtual void deleteSurroundingText(int before, int after) = 0; |
188 | 190 |
189 // Spell-checking support ------------------------------------------------- | 191 // Spell-checking support ------------------------------------------------- |
190 virtual void replaceMisspelledRange(const WebString&) = 0; | 192 virtual void replaceMisspelledRange(const WebString&) = 0; |
191 | 193 |
192 // Content Settings ------------------------------------------------------- | 194 // Content Settings ------------------------------------------------------- |
193 | 195 |
194 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; | 196 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; |
195 | 197 |
196 // App banner ------------------------------------------------------------- | 198 // App banner ------------------------------------------------------------- |
197 | 199 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |