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

Side by Side Diff: Source/core/editing/Editor.h

Issue 14859008: Use a block cursor in overtype mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 String misspelledWordAtCaretOrRange(Node* clickedNode) const; 205 String misspelledWordAtCaretOrRange(Node* clickedNode) const;
206 bool isSpellCheckingEnabledInFocusedNode() const; 206 bool isSpellCheckingEnabledInFocusedNode() const;
207 bool isSpellCheckingEnabledFor(Node*) const; 207 bool isSpellCheckingEnabledFor(Node*) const;
208 void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, con st VisibleSelection& selectionAfterTyping); 208 void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, con st VisibleSelection& selectionAfterTyping);
209 void markMisspellings(const VisibleSelection&, RefPtr<Range>& firstMisspelli ngRange); 209 void markMisspellings(const VisibleSelection&, RefPtr<Range>& firstMisspelli ngRange);
210 void markBadGrammar(const VisibleSelection&); 210 void markBadGrammar(const VisibleSelection&);
211 void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection , bool markGrammar, const VisibleSelection& grammarSelection); 211 void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection , bool markGrammar, const VisibleSelection& grammarSelection);
212 void markAndReplaceFor(PassRefPtr<SpellCheckRequest>, const Vector<TextCheck ingResult>&); 212 void markAndReplaceFor(PassRefPtr<SpellCheckRequest>, const Vector<TextCheck ingResult>&);
213 213
214 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; } 214 bool isOverwriteModeEnabled() const { return m_overwriteModeEnabled; }
215 void toggleOverwriteModeEnabled() { m_overwriteModeEnabled = !m_overwriteMod eEnabled; } 215 void toggleOverwriteModeEnabled();
216 216
217 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, Range* s pellingRange, Range* grammarRange); 217 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask, Range* s pellingRange, Range* grammarRange);
218 218
219 void advanceToNextMisspelling(bool startBeforeSelection = false); 219 void advanceToNextMisspelling(bool startBeforeSelection = false);
220 void showSpellingGuessPanel(); 220 void showSpellingGuessPanel();
221 221
222 bool shouldBeginEditing(Range*); 222 bool shouldBeginEditing(Range*);
223 bool shouldEndEditing(Range*); 223 bool shouldEndEditing(Range*);
224 224
225 void clearUndoRedoOperations(); 225 void clearUndoRedoOperations();
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 inline bool Editor::markedTextMatchesAreHighlighted() const 390 inline bool Editor::markedTextMatchesAreHighlighted() const
391 { 391 {
392 return m_areMarkedTextMatchesHighlighted; 392 return m_areMarkedTextMatchesHighlighted;
393 } 393 }
394 394
395 395
396 } // namespace WebCore 396 } // namespace WebCore
397 397
398 #endif // Editor_h 398 #endif // Editor_h
OLDNEW
« no previous file with comments | « LayoutTests/editing/selection/resources/block-cursor-utils.js ('k') | Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698