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

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

Issue 23332004: Trigger spell check/remove markers if spell checker gets enabled/disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: true=>asynchronous 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 void revealSelectionAfterEditingOperation(const ScrollAlignment& = ScrollAli gnment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent); 331 void revealSelectionAfterEditingOperation(const ScrollAlignment& = ScrollAli gnment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent);
332 void markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin g, RefPtr<Range>& firstMisspellingRange); 332 void markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin g, RefPtr<Range>& firstMisspellingRange);
333 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); 333 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask);
334 334
335 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame Selection::SetSelectionOptions); 335 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame Selection::SetSelectionOptions);
336 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection , FrameSelection::SetSelectionOptions); 336 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection , FrameSelection::SetSelectionOptions);
337 337
338 Node* findEventTargetFromSelection() const; 338 Node* findEventTargetFromSelection() const;
339 339
340 bool unifiedTextCheckerEnabled() const; 340 bool unifiedTextCheckerEnabled() const;
341
342 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask textCheck ingMask, Range* checkingRange, Range* paragraphRange, bool asynchronous, int req uestNumber, int* checkingLength = 0);
341 }; 343 };
342 344
343 inline void Editor::setStartNewKillRingSequence(bool flag) 345 inline void Editor::setStartNewKillRingSequence(bool flag)
344 { 346 {
345 m_shouldStartNewKillRingSequence = flag; 347 m_shouldStartNewKillRingSequence = flag;
346 } 348 }
347 349
348 inline const VisibleSelection& Editor::mark() const 350 inline const VisibleSelection& Editor::mark() const
349 { 351 {
350 return m_mark; 352 return m_mark;
351 } 353 }
352 354
353 inline void Editor::setMark(const VisibleSelection& selection) 355 inline void Editor::setMark(const VisibleSelection& selection)
354 { 356 {
355 m_mark = selection; 357 m_mark = selection;
356 } 358 }
357 359
358 inline bool Editor::markedTextMatchesAreHighlighted() const 360 inline bool Editor::markedTextMatchesAreHighlighted() const
359 { 361 {
360 return m_areMarkedTextMatchesHighlighted; 362 return m_areMarkedTextMatchesHighlighted;
361 } 363 }
362 364
363 365
364 } // namespace WebCore 366 } // namespace WebCore
365 367
366 #endif // Editor_h 368 #endif // Editor_h
OLDNEW
« no previous file with comments | « LayoutTests/editing/spelling/spelling-huge-text-sync-expected.txt ('k') | Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698