| 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 "WebCompositionUnderline.h" | 8 #include "WebCompositionUnderline.h" |
| 9 #include "WebFrame.h" | 9 #include "WebFrame.h" |
| 10 #include "WebFrameLoadType.h" | 10 #include "WebFrameLoadType.h" |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 virtual void extendSelectionAndDelete(int before, int after) = 0; | 288 virtual void extendSelectionAndDelete(int before, int after) = 0; |
| 289 | 289 |
| 290 virtual void setCaretVisible(bool) = 0; | 290 virtual void setCaretVisible(bool) = 0; |
| 291 | 291 |
| 292 // Moves the selection extent point. This function does not allow the | 292 // Moves the selection extent point. This function does not allow the |
| 293 // selection to collapse. If the new extent is set to the same position as | 293 // selection to collapse. If the new extent is set to the same position as |
| 294 // the current base, this function will do nothing. | 294 // the current base, this function will do nothing. |
| 295 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; | 295 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; |
| 296 // Replaces the selection with the input string. | 296 // Replaces the selection with the input string. |
| 297 virtual void replaceSelection(const WebString&) = 0; | 297 virtual void replaceSelection(const WebString&) = 0; |
| 298 // Deletes text before and after the current cursor position, excluding the |
| 299 // selection. |
| 300 virtual void deleteSurroundingText(int before, int after) = 0; |
| 298 | 301 |
| 299 // Spell-checking support ------------------------------------------------- | 302 // Spell-checking support ------------------------------------------------- |
| 300 virtual void replaceMisspelledRange(const WebString&) = 0; | 303 virtual void replaceMisspelledRange(const WebString&) = 0; |
| 301 virtual void enableSpellChecking(bool) = 0; | 304 virtual void enableSpellChecking(bool) = 0; |
| 302 virtual bool isSpellCheckingEnabled() const = 0; | 305 virtual bool isSpellCheckingEnabled() const = 0; |
| 303 virtual void requestTextChecking(const WebElement&) = 0; | 306 virtual void requestTextChecking(const WebElement&) = 0; |
| 304 virtual void removeSpellingMarkers() = 0; | 307 virtual void removeSpellingMarkers() = 0; |
| 305 | 308 |
| 306 // Content Settings ------------------------------------------------------- | 309 // Content Settings ------------------------------------------------------- |
| 307 | 310 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 // to call these on a WebLocalFrame. | 456 // to call these on a WebLocalFrame. |
| 454 bool isWebLocalFrame() const override = 0; | 457 bool isWebLocalFrame() const override = 0; |
| 455 WebLocalFrame* toWebLocalFrame() override = 0; | 458 WebLocalFrame* toWebLocalFrame() override = 0; |
| 456 bool isWebRemoteFrame() const override = 0; | 459 bool isWebRemoteFrame() const override = 0; |
| 457 WebRemoteFrame* toWebRemoteFrame() override = 0; | 460 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 458 }; | 461 }; |
| 459 | 462 |
| 460 } // namespace blink | 463 } // namespace blink |
| 461 | 464 |
| 462 #endif // WebLocalFrame_h | 465 #endif // WebLocalFrame_h |
| OLD | NEW |