| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class HitTestResult; | 52 class HitTestResult; |
| 53 class KillRing; | 53 class KillRing; |
| 54 class Pasteboard; | 54 class Pasteboard; |
| 55 class SharedBuffer; | 55 class SharedBuffer; |
| 56 class SimpleFontData; | 56 class SimpleFontData; |
| 57 class SpellCheckRequest; | 57 class SpellCheckRequest; |
| 58 class SpellCheckRequester; | 58 class SpellCheckRequester; |
| 59 class StylePropertySet; | 59 class StylePropertySet; |
| 60 class Text; | 60 class Text; |
| 61 class TextCheckerClient; | 61 class TextCheckerClient; |
| 62 class TextCheckingParagraph; |
| 63 struct TextCheckingResult; |
| 62 class TextEvent; | 64 class TextEvent; |
| 63 struct TextCheckingResult; | |
| 64 | 65 |
| 65 enum EditorCommandSource { CommandFromMenuOrKeyBinding, CommandFromDOM, CommandF
romDOMWithUserInterface }; | 66 enum EditorCommandSource { CommandFromMenuOrKeyBinding, CommandFromDOM, CommandF
romDOMWithUserInterface }; |
| 66 enum EditorParagraphSeparator { EditorParagraphSeparatorIsDiv, EditorParagraphSe
paratorIsP }; | 67 enum EditorParagraphSeparator { EditorParagraphSeparatorIsDiv, EditorParagraphSe
paratorIsP }; |
| 67 | 68 |
| 68 class Editor : public FrameDestructionObserver { | 69 class Editor : public FrameDestructionObserver { |
| 69 public: | 70 public: |
| 70 explicit Editor(Frame&); | 71 explicit Editor(Frame&); |
| 71 ~Editor(); | 72 ~Editor(); |
| 72 | 73 |
| 73 EditorClient& client() const; | 74 EditorClient& client() const; |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 void markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin
g, RefPtr<Range>& firstMisspellingRange); | 333 void markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin
g, RefPtr<Range>& firstMisspellingRange); |
| 333 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); | 334 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); |
| 334 | 335 |
| 335 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame
Selection::SetSelectionOptions); | 336 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame
Selection::SetSelectionOptions); |
| 336 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection
, FrameSelection::SetSelectionOptions); | 337 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection
, FrameSelection::SetSelectionOptions); |
| 337 | 338 |
| 338 Node* findEventTargetFromSelection() const; | 339 Node* findEventTargetFromSelection() const; |
| 339 | 340 |
| 340 bool unifiedTextCheckerEnabled() const; | 341 bool unifiedTextCheckerEnabled() const; |
| 341 | 342 |
| 342 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask textCheck
ingMask, Range* checkingRange, Range* paragraphRange, bool asynchronous, int req
uestNumber, int* checkingLength = 0); | 343 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck
ingOptions, const TextCheckingParagraph& fullParagraphToCheck, bool asynchronous
); |
| 344 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask textCheck
ingOptions, Range* checkingRange, Range* paragraphRange, bool asynchronous, int
requestNumber, int* checkingLength = 0); |
| 343 }; | 345 }; |
| 344 | 346 |
| 345 inline void Editor::setStartNewKillRingSequence(bool flag) | 347 inline void Editor::setStartNewKillRingSequence(bool flag) |
| 346 { | 348 { |
| 347 m_shouldStartNewKillRingSequence = flag; | 349 m_shouldStartNewKillRingSequence = flag; |
| 348 } | 350 } |
| 349 | 351 |
| 350 inline const VisibleSelection& Editor::mark() const | 352 inline const VisibleSelection& Editor::mark() const |
| 351 { | 353 { |
| 352 return m_mark; | 354 return m_mark; |
| 353 } | 355 } |
| 354 | 356 |
| 355 inline void Editor::setMark(const VisibleSelection& selection) | 357 inline void Editor::setMark(const VisibleSelection& selection) |
| 356 { | 358 { |
| 357 m_mark = selection; | 359 m_mark = selection; |
| 358 } | 360 } |
| 359 | 361 |
| 360 inline bool Editor::markedTextMatchesAreHighlighted() const | 362 inline bool Editor::markedTextMatchesAreHighlighted() const |
| 361 { | 363 { |
| 362 return m_areMarkedTextMatchesHighlighted; | 364 return m_areMarkedTextMatchesHighlighted; |
| 363 } | 365 } |
| 364 | 366 |
| 365 | 367 |
| 366 } // namespace WebCore | 368 } // namespace WebCore |
| 367 | 369 |
| 368 #endif // Editor_h | 370 #endif // Editor_h |
| OLD | NEW |