OLD | NEW |
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 Loading... |
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 |
OLD | NEW |