| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 423 |
| 424 // Returns the index of a character in the Frame's text stream at the given | 424 // Returns the index of a character in the Frame's text stream at the given |
| 425 // point. The point is in the window coordinate space. Will return | 425 // point. The point is in the window coordinate space. Will return |
| 426 // WTF::notFound if the point is invalid. | 426 // WTF::notFound if the point is invalid. |
| 427 virtual size_t characterIndexForPoint(const WebPoint&) const = 0; | 427 virtual size_t characterIndexForPoint(const WebPoint&) const = 0; |
| 428 | 428 |
| 429 // Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll, | 429 // Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll, |
| 430 // Unselect, etc. See EditorCommand.cpp for the full list of supported | 430 // Unselect, etc. See EditorCommand.cpp for the full list of supported |
| 431 // commands. | 431 // commands. |
| 432 virtual bool executeCommand(const WebString&, const WebNode& = WebNode()) =
0; | 432 virtual bool executeCommand(const WebString&, const WebNode& = WebNode()) =
0; |
| 433 virtual bool executeCommand(const WebString&, const WebString& value) = 0; | 433 virtual bool executeCommand(const WebString&, const WebString& value, const
WebNode& = WebNode()) = 0; |
| 434 virtual bool isCommandEnabled(const WebString&) const = 0; | 434 virtual bool isCommandEnabled(const WebString&) const = 0; |
| 435 | 435 |
| 436 // Spell-checking support. | 436 // Spell-checking support. |
| 437 virtual void enableContinuousSpellChecking(bool) = 0; | 437 virtual void enableContinuousSpellChecking(bool) = 0; |
| 438 virtual bool isContinuousSpellCheckingEnabled() const = 0; | 438 virtual bool isContinuousSpellCheckingEnabled() const = 0; |
| 439 virtual void requestTextChecking(const WebElement&) = 0; | 439 virtual void requestTextChecking(const WebElement&) = 0; |
| 440 virtual void replaceMisspelledRange(const WebString&) = 0; | 440 virtual void replaceMisspelledRange(const WebString&) = 0; |
| 441 virtual void removeSpellingMarkers() = 0; | 441 virtual void removeSpellingMarkers() = 0; |
| 442 | 442 |
| 443 // Selection ----------------------------------------------------------- | 443 // Selection ----------------------------------------------------------- |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 // text form. This is used only by layout tests. | 654 // text form. This is used only by layout tests. |
| 655 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 655 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
| 656 | 656 |
| 657 protected: | 657 protected: |
| 658 ~WebFrame() { } | 658 ~WebFrame() { } |
| 659 }; | 659 }; |
| 660 | 660 |
| 661 } // namespace WebKit | 661 } // namespace WebKit |
| 662 | 662 |
| 663 #endif | 663 #endif |
| OLD | NEW |