| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 virtual void setCaretVisible(bool) = 0; | 298 virtual void setCaretVisible(bool) = 0; |
| 299 | 299 |
| 300 // Moves the selection extent point. This function does not allow the | 300 // Moves the selection extent point. This function does not allow the |
| 301 // selection to collapse. If the new extent is set to the same position as | 301 // selection to collapse. If the new extent is set to the same position as |
| 302 // the current base, this function will do nothing. | 302 // the current base, this function will do nothing. |
| 303 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; | 303 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; |
| 304 // Replaces the selection with the input string. | 304 // Replaces the selection with the input string. |
| 305 virtual void replaceSelection(const WebString&) = 0; | 305 virtual void replaceSelection(const WebString&) = 0; |
| 306 // Deletes text before and after the current cursor position, excluding the | 306 // Deletes text before and after the current cursor position, excluding the |
| 307 // selection. | 307 // selection. The lengths are supplied in Java chars, not in code points or in |
| 308 // glyphs. |
| 308 virtual void deleteSurroundingText(int before, int after) = 0; | 309 virtual void deleteSurroundingText(int before, int after) = 0; |
| 310 // A variant of deleteSurroundingText(int, int). Major differences are: |
| 311 // 1. The lengths are supplied in code points, not in Java chars or in glyphs. |
| 312 // 2. This method does nothing if there are one or more invalid surrogate |
| 313 // pairs in the requested range. |
| 314 virtual void deleteSurroundingTextInCodePoints(int before, int after) = 0; |
| 309 | 315 |
| 310 // Spell-checking support ------------------------------------------------- | 316 // Spell-checking support ------------------------------------------------- |
| 311 virtual void replaceMisspelledRange(const WebString&) = 0; | 317 virtual void replaceMisspelledRange(const WebString&) = 0; |
| 312 virtual void enableSpellChecking(bool) = 0; | 318 virtual void enableSpellChecking(bool) = 0; |
| 313 virtual bool isSpellCheckingEnabled() const = 0; | 319 virtual bool isSpellCheckingEnabled() const = 0; |
| 314 virtual void removeSpellingMarkers() = 0; | 320 virtual void removeSpellingMarkers() = 0; |
| 315 | 321 |
| 316 // Content Settings ------------------------------------------------------- | 322 // Content Settings ------------------------------------------------------- |
| 317 | 323 |
| 318 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; | 324 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 // to call these on a WebLocalFrame. | 472 // to call these on a WebLocalFrame. |
| 467 bool isWebLocalFrame() const override = 0; | 473 bool isWebLocalFrame() const override = 0; |
| 468 WebLocalFrame* toWebLocalFrame() override = 0; | 474 WebLocalFrame* toWebLocalFrame() override = 0; |
| 469 bool isWebRemoteFrame() const override = 0; | 475 bool isWebRemoteFrame() const override = 0; |
| 470 WebRemoteFrame* toWebRemoteFrame() override = 0; | 476 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 471 }; | 477 }; |
| 472 | 478 |
| 473 } // namespace blink | 479 } // namespace blink |
| 474 | 480 |
| 475 #endif // WebLocalFrame_h | 481 #endif // WebLocalFrame_h |
| OLD | NEW |