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

Unified Diff: Source/core/editing/Editor.h

Issue 21694005: Spell check whole content of an editable element when it gets focused. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: change alerts to logs (tests) Created 7 years, 4 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
Index: Source/core/editing/Editor.h
diff --git a/Source/core/editing/Editor.h b/Source/core/editing/Editor.h
index 053c3879df0890f10a76c38c05fac7a88a32081e..fd858b7dcc75ef358a27c0f87bc605ea434e4181 100644
--- a/Source/core/editing/Editor.h
+++ b/Source/core/editing/Editor.h
@@ -214,7 +214,7 @@ public:
bool canRedo();
void redo();
- void didBeginEditing();
+ void didBeginEditing(Element*);
void didEndEditing();
void setBaseWritingDirection(WritingDirection);
@@ -281,7 +281,7 @@ public:
bool markedTextMatchesAreHighlighted() const;
void setMarkedTextMatchesAreHighlighted(bool);
- void textFieldDidBeginEditing(Element*);
+ void textAreaOrTextFieldDidBeginEditing(Element*);
void textFieldDidEndEditing(Element*);
void textDidChangeInTextField(Element*);
bool doTextFieldCommandFromEvent(Element*, KeyboardEvent*);
@@ -309,6 +309,10 @@ public:
};
friend class RevealSelectionScope;
+ // Spell checks whole contents of a editable element (<input="text"/>, <textarea> or contenteditable)
+ // This gets called when any editable element gets focused.
tony 2013/08/22 18:44:34 I would remove this comment. We don't normally inc
+ void elementDidBeginEditing(Element*);
+
private:
RefPtr<CompositeEditCommand> m_lastEditCommand;
RefPtr<Node> m_removedAnchor;

Powered by Google App Engine
This is Rietveld 408576698