| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 virtual void replaceSelection(const WebString& text) = 0; | 296 virtual void replaceSelection(const WebString& text) = 0; |
| 297 | 297 |
| 298 virtual void insertText(const WebString& text) = 0; | 298 virtual void insertText(const WebString& text) = 0; |
| 299 | 299 |
| 300 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0; | 300 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0; |
| 301 virtual void unmarkText() = 0; | 301 virtual void unmarkText() = 0; |
| 302 virtual bool hasMarkedText() const = 0; | 302 virtual bool hasMarkedText() const = 0; |
| 303 | 303 |
| 304 virtual WebRange markedRange() const = 0; | 304 virtual WebRange markedRange() const = 0; |
| 305 | 305 |
| 306 // See EditorCommand.cpp for the list of supported commands. | 306 // Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll, |
| 307 // Unselect, etc. See EditorCommand.cpp for the full list of supported |
| 308 // commands. |
| 307 virtual bool executeCommand(const WebString&) = 0; | 309 virtual bool executeCommand(const WebString&) = 0; |
| 308 virtual bool executeCommand(const WebString&, const WebString& value) = 0; | 310 virtual bool executeCommand(const WebString&, const WebString& value) = 0; |
| 309 virtual bool isCommandEnabled(const WebString&) const = 0; | 311 virtual bool isCommandEnabled(const WebString&) const = 0; |
| 310 | 312 |
| 311 // Spell-checking support. | 313 // Spell-checking support. |
| 312 virtual void enableContinuousSpellChecking(bool) = 0; | 314 virtual void enableContinuousSpellChecking(bool) = 0; |
| 313 virtual bool isContinuousSpellCheckingEnabled() const = 0; | 315 virtual bool isContinuousSpellCheckingEnabled() const = 0; |
| 314 | 316 |
| 315 | 317 |
| 316 // Selection ----------------------------------------------------------- | 318 // Selection ----------------------------------------------------------- |
| 317 | 319 |
| 318 virtual void selectAll() = 0; | |
| 319 virtual void clearSelection() = 0; | |
| 320 virtual bool hasSelection() const = 0; | 320 virtual bool hasSelection() const = 0; |
| 321 | 321 |
| 322 virtual WebRange selectionRange() const = 0; | 322 virtual WebRange selectionRange() const = 0; |
| 323 | 323 |
| 324 virtual WebString selectionAsText() const = 0; | 324 virtual WebString selectionAsText() const = 0; |
| 325 virtual WebString selectionAsMarkup() const = 0; | 325 virtual WebString selectionAsMarkup() const = 0; |
| 326 | 326 |
| 327 | 327 |
| 328 // Printing ------------------------------------------------------------ | 328 // Printing ------------------------------------------------------------ |
| 329 | 329 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // from the DOM. | 426 // from the DOM. |
| 427 virtual WebString contentAsMarkup() const = 0; | 427 virtual WebString contentAsMarkup() const = 0; |
| 428 | 428 |
| 429 protected: | 429 protected: |
| 430 ~WebFrame() { } | 430 ~WebFrame() { } |
| 431 }; | 431 }; |
| 432 | 432 |
| 433 } // namespace WebKit | 433 } // namespace WebKit |
| 434 | 434 |
| 435 #endif | 435 #endif |
| OLD | NEW |