| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 425 |
| 426 // Returns the index of a character in the Frame's text stream at the given | 426 // Returns the index of a character in the Frame's text stream at the given |
| 427 // point. The point is in the window coordinate space. Will return | 427 // point. The point is in the window coordinate space. Will return |
| 428 // WTF::notFound if the point is invalid. | 428 // WTF::notFound if the point is invalid. |
| 429 virtual size_t characterIndexForPoint(const WebPoint&) const = 0; | 429 virtual size_t characterIndexForPoint(const WebPoint&) const = 0; |
| 430 | 430 |
| 431 // Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll, | 431 // Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll, |
| 432 // Unselect, etc. See EditorCommand.cpp for the full list of supported | 432 // Unselect, etc. See EditorCommand.cpp for the full list of supported |
| 433 // commands. | 433 // commands. |
| 434 virtual bool executeCommand(const WebString&, const WebNode& = WebNode()) =
0; | 434 virtual bool executeCommand(const WebString&, const WebNode& = WebNode()) =
0; |
| 435 virtual bool executeCommand(const WebString&, const WebString& value) = 0; | 435 virtual bool executeCommand(const WebString&, const WebString& value, const
WebNode& = WebNode()) = 0; |
| 436 virtual bool isCommandEnabled(const WebString&) const = 0; | 436 virtual bool isCommandEnabled(const WebString&) const = 0; |
| 437 | 437 |
| 438 // Spell-checking support. | 438 // Spell-checking support. |
| 439 virtual void enableContinuousSpellChecking(bool) = 0; | 439 virtual void enableContinuousSpellChecking(bool) = 0; |
| 440 virtual bool isContinuousSpellCheckingEnabled() const = 0; | 440 virtual bool isContinuousSpellCheckingEnabled() const = 0; |
| 441 virtual void requestTextChecking(const WebElement&) = 0; | 441 virtual void requestTextChecking(const WebElement&) = 0; |
| 442 virtual void replaceMisspelledRange(const WebString&) = 0; | 442 virtual void replaceMisspelledRange(const WebString&) = 0; |
| 443 virtual void removeSpellingMarkers() = 0; | 443 virtual void removeSpellingMarkers() = 0; |
| 444 | 444 |
| 445 // Selection ----------------------------------------------------------- | 445 // Selection ----------------------------------------------------------- |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 // text form. This is used only by layout tests. | 660 // text form. This is used only by layout tests. |
| 661 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 661 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
| 662 | 662 |
| 663 protected: | 663 protected: |
| 664 ~WebFrame() { } | 664 ~WebFrame() { } |
| 665 }; | 665 }; |
| 666 | 666 |
| 667 } // namespace WebKit | 667 } // namespace WebKit |
| 668 | 668 |
| 669 #endif | 669 #endif |
| OLD | NEW |