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

Unified Diff: third_party/WebKit/public/web/WebFrame.h

Issue 2012823003: Move IME related functions from WebFrame to WebLocalFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add CHECK in TextInputController::HasMarkedText() Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrame.h
diff --git a/third_party/WebKit/public/web/WebFrame.h b/third_party/WebKit/public/web/WebFrame.h
index 0639c225319c6818657e78fd750f047b77601fe1..39f6dc66301de05a3cdb952f7cde7b27c54b8322 100644
--- a/third_party/WebKit/public/web/WebFrame.h
+++ b/third_party/WebKit/public/web/WebFrame.h
@@ -402,70 +402,6 @@ public:
virtual bool isLoading() const;
- // Editing -------------------------------------------------------------
-
- virtual void insertText(const WebString& text) = 0;
-
- virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0;
- virtual void unmarkText() = 0;
- virtual bool hasMarkedText() const = 0;
-
- virtual WebRange markedRange() const = 0;
-
- // Returns the text range rectangle in the viepwort coordinate space.
- virtual bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&) const = 0;
-
- // Returns the index of a character in the Frame's text stream at the given
- // point. The point is in the viewport coordinate space. Will return
- // WTF::notFound if the point is invalid.
- virtual size_t characterIndexForPoint(const WebPoint&) const = 0;
-
- // Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll,
- // Unselect, etc. See EditorCommand.cpp for the full list of supported
- // commands.
- virtual bool executeCommand(const WebString&) = 0;
- virtual bool executeCommand(const WebString&, const WebString& value) = 0;
- virtual bool isCommandEnabled(const WebString&) const = 0;
-
- // Spell-checking support.
- virtual void enableContinuousSpellChecking(bool) = 0;
- virtual bool isContinuousSpellCheckingEnabled() const = 0;
- virtual void requestTextChecking(const WebElement&) = 0;
- virtual void removeSpellingMarkers() = 0;
-
- // Selection -----------------------------------------------------------
-
- virtual bool hasSelection() const = 0;
-
- virtual WebRange selectionRange() const = 0;
-
- virtual WebString selectionAsText() const = 0;
- virtual WebString selectionAsMarkup() const = 0;
-
- // Expands the selection to a word around the caret and returns
- // true. Does nothing and returns false if there is no caret or
- // there is ranged selection.
- virtual bool selectWordAroundCaret() = 0;
-
- // DEPRECATED: Use moveRangeSelection.
- virtual void selectRange(const WebPoint& base, const WebPoint& extent) = 0;
-
- virtual void selectRange(const WebRange&) = 0;
-
- // Move the current selection to the provided viewport point/points. If the
- // current selection is editable, the new selection will be restricted to
- // the root editable element.
- // |TextGranularity| represents character wrapping granularity. If
- // WordGranularity is set, WebFrame extends selection to wrap word.
- virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent, WebFrame::TextGranularity = CharacterGranularity) = 0;
- virtual void moveCaretSelection(const WebPoint&) = 0;
-
- virtual bool setEditableSelectionOffsets(int start, int end) = 0;
- virtual bool setCompositionFromExistingText(int compositionStart, int compositionEnd, const WebVector<WebCompositionUnderline>& underlines) = 0;
- virtual void extendSelectionAndDelete(int before, int after) = 0;
-
- virtual void setCaretVisible(bool) = 0;
-
// Printing ------------------------------------------------------------
// Reformats the WebFrame for printing. WebPrintParams specifies the printable
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698