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