| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // Moves the selection extent point. This function does not allow the | 319 // Moves the selection extent point. This function does not allow the |
| 320 // selection to collapse. If the new extent is set to the same position as | 320 // selection to collapse. If the new extent is set to the same position as |
| 321 // the current base, this function will do nothing. | 321 // the current base, this function will do nothing. |
| 322 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; | 322 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; |
| 323 // Replaces the selection with the input string. | 323 // Replaces the selection with the input string. |
| 324 virtual void replaceSelection(const WebString&) = 0; | 324 virtual void replaceSelection(const WebString&) = 0; |
| 325 // Deletes text before and after the current cursor position, excluding the | 325 // Deletes text before and after the current cursor position, excluding the |
| 326 // selection. | 326 // selection. |
| 327 virtual void deleteSurroundingText(int before, int after) = 0; | 327 virtual void deleteSurroundingText(int before, int after) = 0; |
| 328 | 328 |
| 329 virtual void extractSmartClipData(WebRect rectInViewport, |
| 330 WebString& clipText, |
| 331 WebString& clipHtml) = 0; |
| 332 |
| 329 // Spell-checking support ------------------------------------------------- | 333 // Spell-checking support ------------------------------------------------- |
| 330 virtual void replaceMisspelledRange(const WebString&) = 0; | 334 virtual void replaceMisspelledRange(const WebString&) = 0; |
| 331 virtual void enableSpellChecking(bool) = 0; | 335 virtual void enableSpellChecking(bool) = 0; |
| 332 virtual bool isSpellCheckingEnabled() const = 0; | 336 virtual bool isSpellCheckingEnabled() const = 0; |
| 333 virtual void removeSpellingMarkers() = 0; | 337 virtual void removeSpellingMarkers() = 0; |
| 334 | 338 |
| 335 // Content Settings ------------------------------------------------------- | 339 // Content Settings ------------------------------------------------------- |
| 336 | 340 |
| 337 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; | 341 virtual void setContentSettingsClient(WebContentSettingsClient*) = 0; |
| 338 | 342 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 // to call these on a WebLocalFrame. | 492 // to call these on a WebLocalFrame. |
| 489 bool isWebLocalFrame() const override = 0; | 493 bool isWebLocalFrame() const override = 0; |
| 490 WebLocalFrame* toWebLocalFrame() override = 0; | 494 WebLocalFrame* toWebLocalFrame() override = 0; |
| 491 bool isWebRemoteFrame() const override = 0; | 495 bool isWebRemoteFrame() const override = 0; |
| 492 WebRemoteFrame* toWebRemoteFrame() override = 0; | 496 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 493 }; | 497 }; |
| 494 | 498 |
| 495 } // namespace blink | 499 } // namespace blink |
| 496 | 500 |
| 497 #endif // WebLocalFrame_h | 501 #endif // WebLocalFrame_h |
| OLD | NEW |