Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: Source/WebKit/chromium/public/WebFrame.h

Issue 15071004: Plumb edit commands to plugins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/WebKit/chromium/public/WebPlugin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/WebKit/chromium/public/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698