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

Side by Side Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h

Issue 2669213002: Remove spelling markers in disabled and readonly form elements
Patch Set: Using idle task to remove the markers Created 3 years, 9 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void showSpellingGuessPanel(); 69 void showSpellingGuessPanel();
70 void didBeginEditing(Element*); 70 void didBeginEditing(Element*);
71 void clearMisspellingsForMovingParagraphs(const VisibleSelection&); 71 void clearMisspellingsForMovingParagraphs(const VisibleSelection&);
72 void markMisspellingsForMovingParagraphs(const VisibleSelection&); 72 void markMisspellingsForMovingParagraphs(const VisibleSelection&);
73 void respondToChangedContents(); 73 void respondToChangedContents();
74 void respondToChangedSelection(const Position& oldSelectionStart, 74 void respondToChangedSelection(const Position& oldSelectionStart,
75 FrameSelection::SetSelectionOptions); 75 FrameSelection::SetSelectionOptions);
76 void replaceMisspelledRange(const String&); 76 void replaceMisspelledRange(const String&);
77 void removeSpellingMarkers(); 77 void removeSpellingMarkers();
78 void removeSpellingMarkersUnderWords(const Vector<String>& words); 78 void removeSpellingMarkersUnderWords(const Vector<String>& words);
79 enum class ElementsType { kAll, kOnlyNonEditable };
80 void removeSpellingAndGrammarMarkers(const HTMLElement&,
81 ElementsType = ElementsType::kAll);
82 void spellCheckAfterBlur(); 79 void spellCheckAfterBlur();
83 80
84 void didEndEditingOnTextField(Element*); 81 void didEndEditingOnTextField(Element*);
85 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType, 82 bool selectionStartHasMarkerFor(DocumentMarker::MarkerType,
86 int from, 83 int from,
87 int length) const; 84 int length) const;
88 bool selectionStartHasSpellingMarkerFor(int from, int length) const; 85 bool selectionStartHasSpellingMarkerFor(int from, int length) const;
89 void updateMarkersForWordsAffectedByEditing( 86 void updateMarkersForWordsAffectedByEditing(
90 bool onlyHandleWordsContainingSelection); 87 bool onlyHandleWordsContainingSelection);
91 void cancelCheck(); 88 void cancelCheck();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 133
137 Member<LocalFrame> m_frame; 134 Member<LocalFrame> m_frame;
138 135
139 const Member<SpellCheckRequester> m_spellCheckRequester; 136 const Member<SpellCheckRequester> m_spellCheckRequester;
140 const Member<IdleSpellCheckCallback> m_idleSpellCheckCallback; 137 const Member<IdleSpellCheckCallback> m_idleSpellCheckCallback;
141 }; 138 };
142 139
143 } // namespace blink 140 } // namespace blink
144 141
145 #endif // SpellChecker_h 142 #endif // SpellChecker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698