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

Side by Side 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: 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 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 bool shouldBeginEditing(Range*); 221 bool shouldBeginEditing(Range*);
222 bool shouldEndEditing(Range*); 222 bool shouldEndEditing(Range*);
223 223
224 void clearUndoRedoOperations(); 224 void clearUndoRedoOperations();
225 bool canUndo(); 225 bool canUndo();
226 void undo(); 226 void undo();
227 bool canRedo(); 227 bool canRedo();
228 void redo(); 228 void redo();
229 229
230 void didBeginEditing(); 230 void didBeginEditing(Element*);
231 void didEndEditing(); 231 void didEndEditing(Element*);
232 232
233 void setBaseWritingDirection(WritingDirection); 233 void setBaseWritingDirection(WritingDirection);
234 234
235 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are 235 // smartInsertDeleteEnabled and selectTrailingWhitespaceEnabled are
236 // mutually exclusive, meaning that enabling one will disable the other. 236 // mutually exclusive, meaning that enabling one will disable the other.
237 bool smartInsertDeleteEnabled(); 237 bool smartInsertDeleteEnabled();
238 bool isSelectTrailingWhitespaceEnabled(); 238 bool isSelectTrailingWhitespaceEnabled();
239 239
240 // international text input composition 240 // international text input composition
241 bool hasComposition() const { return m_compositionNode; } 241 bool hasComposition() const { return m_compositionNode; }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 void applyEditingStyleToElement(Element*) const; 306 void applyEditingStyleToElement(Element*) const;
307 307
308 IntRect firstRectForRange(Range*) const; 308 IntRect firstRectForRange(Range*) const;
309 309
310 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions); 310 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSe lection::SetSelectionOptions);
311 bool shouldChangeSelection(const VisibleSelection& oldSelection, const Visib leSelection& newSelection, EAffinity, bool stillSelecting) const; 311 bool shouldChangeSelection(const VisibleSelection& oldSelection, const Visib leSelection& newSelection, EAffinity, bool stillSelecting) const;
312 312
313 bool markedTextMatchesAreHighlighted() const; 313 bool markedTextMatchesAreHighlighted() const;
314 void setMarkedTextMatchesAreHighlighted(bool); 314 void setMarkedTextMatchesAreHighlighted(bool);
315 315
316 void textAreaDidBeginEditing(Element*);
316 void textFieldDidBeginEditing(Element*); 317 void textFieldDidBeginEditing(Element*);
317 void textFieldDidEndEditing(Element*); 318 void textFieldDidEndEditing(Element*);
318 void textDidChangeInTextField(Element*); 319 void textDidChangeInTextField(Element*);
319 bool doTextFieldCommandFromEvent(Element*, KeyboardEvent*); 320 bool doTextFieldCommandFromEvent(Element*, KeyboardEvent*);
320 WritingDirection baseWritingDirectionForSelectionStart() const; 321 WritingDirection baseWritingDirectionForSelectionStart() const;
321 322
322 void replaceSelectionWithFragment(PassRefPtr<DocumentFragment>, bool selectR eplacement, bool smartReplace, bool matchStyle); 323 void replaceSelectionWithFragment(PassRefPtr<DocumentFragment>, bool selectR eplacement, bool smartReplace, bool matchStyle);
323 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm artReplace); 324 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm artReplace);
324 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int le ngth) const; 325 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, int from, int le ngth) const;
325 void updateMarkersForWordsAffectedByEditing(bool onlyHandleWordsContainingSe lection); 326 void updateMarkersForWordsAffectedByEditing(bool onlyHandleWordsContainingSe lection);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 390
390 inline bool Editor::markedTextMatchesAreHighlighted() const 391 inline bool Editor::markedTextMatchesAreHighlighted() const
391 { 392 {
392 return m_areMarkedTextMatchesHighlighted; 393 return m_areMarkedTextMatchesHighlighted;
393 } 394 }
394 395
395 396
396 } // namespace WebCore 397 } // namespace WebCore
397 398
398 #endif // Editor_h 399 #endif // Editor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698