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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
334 void markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin g, RefPtr<Range>& firstMisspellingRange); | 335 void markMisspellingsOrBadGrammar(const VisibleSelection&, bool checkSpellin g, RefPtr<Range>& firstMisspellingRange); |
335 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); | 336 TextCheckingTypeMask resolveTextCheckingTypeMask(TextCheckingTypeMask); |
336 | 337 |
337 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame Selection::SetSelectionOptions); | 338 void changeSelectionAfterCommand(const VisibleSelection& newSelection, Frame Selection::SetSelectionOptions); |
338 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection , FrameSelection::SetSelectionOptions); | 339 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection , FrameSelection::SetSelectionOptions); |
339 | 340 |
340 Node* findEventTargetFromSelection() const; | 341 Node* findEventTargetFromSelection() const; |
341 | 342 |
342 bool unifiedTextCheckerEnabled() const; | 343 bool unifiedTextCheckerEnabled() const; |
343 | 344 |
344 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask textCheck ingMask, Range* checkingRange, Range* paragraphRange, bool asynchronous, int req uestNumber, int* checkingLength = 0); | 345 void chunkAndMarkAllMisspellingsAndBadGrammar(TextCheckingTypeMask textCheck ingOptions, const TextCheckingParagraph& fullParagraphToCheck, bool asynchronous ); |
tony
2013/08/26 23:40:51
Nit: fullParagraphToCheck doesn't need to be named
| |
346 void markAllMisspellingsAndBadGrammarInRanges(TextCheckingTypeMask textCheck ingOptions, Range* checkingRange, Range* paragraphRange, bool asynchronous, int requestNumber, int* checkingLength = 0); | |
345 }; | 347 }; |
346 | 348 |
347 inline void Editor::setStartNewKillRingSequence(bool flag) | 349 inline void Editor::setStartNewKillRingSequence(bool flag) |
348 { | 350 { |
349 m_shouldStartNewKillRingSequence = flag; | 351 m_shouldStartNewKillRingSequence = flag; |
350 } | 352 } |
351 | 353 |
352 inline const VisibleSelection& Editor::mark() const | 354 inline const VisibleSelection& Editor::mark() const |
353 { | 355 { |
354 return m_mark; | 356 return m_mark; |
355 } | 357 } |
356 | 358 |
357 inline void Editor::setMark(const VisibleSelection& selection) | 359 inline void Editor::setMark(const VisibleSelection& selection) |
358 { | 360 { |
359 m_mark = selection; | 361 m_mark = selection; |
360 } | 362 } |
361 | 363 |
362 inline bool Editor::markedTextMatchesAreHighlighted() const | 364 inline bool Editor::markedTextMatchesAreHighlighted() const |
363 { | 365 { |
364 return m_areMarkedTextMatchesHighlighted; | 366 return m_areMarkedTextMatchesHighlighted; |
365 } | 367 } |
366 | 368 |
367 | 369 |
368 } // namespace WebCore | 370 } // namespace WebCore |
369 | 371 |
370 #endif // Editor_h | 372 #endif // Editor_h |
OLD | NEW |