Index: Source/core/editing/SpellCheckRequester.h |
diff --git a/Source/core/editing/SpellCheckRequester.h b/Source/core/editing/SpellCheckRequester.h |
index 1ea6a4c4ef8cfe3571c78102280eef26e88f10e5..ac147491b837a792feea41eb31ec07d565e13271 100644 |
--- a/Source/core/editing/SpellCheckRequester.h |
+++ b/Source/core/editing/SpellCheckRequester.h |
@@ -45,7 +45,7 @@ class TextCheckerClient; |
class SpellCheckRequest : public TextCheckingRequest { |
public: |
- static PassRefPtr<SpellCheckRequest> create(TextCheckingTypeMask, TextCheckingProcessType, PassRefPtr<Range> checkingRange, PassRefPtr<Range> paragraphRange); |
+ static PassRefPtr<SpellCheckRequest> create(TextCheckingTypeMask, TextCheckingProcessType, PassRefPtr<Range> checkingRange, PassRefPtr<Range> paragraphRange, int requestNumber = 0); |
virtual ~SpellCheckRequest(); |
PassRefPtr<Range> checkingRange() const { return m_checkingRange; } |
@@ -60,14 +60,17 @@ public: |
virtual void didSucceed(const Vector<TextCheckingResult>&) OVERRIDE; |
virtual void didCancel() OVERRIDE; |
+ int requestNumber() const { return m_requestNumber; } |
+ |
private: |
- SpellCheckRequest(PassRefPtr<Range> checkingRange, PassRefPtr<Range> paragraphRange, const String&, TextCheckingTypeMask, TextCheckingProcessType, const Vector<uint32_t>& documentMarkersInRange, const Vector<unsigned>& documentMarkerOffsets); |
+ SpellCheckRequest(PassRefPtr<Range> checkingRange, PassRefPtr<Range> paragraphRange, const String&, TextCheckingTypeMask, TextCheckingProcessType, const Vector<uint32_t>& documentMarkersInRange, const Vector<unsigned>& documentMarkerOffsets, int requestNumber); |
SpellCheckRequester* m_requester; |
RefPtr<Range> m_checkingRange; |
RefPtr<Range> m_paragraphRange; |
RefPtr<Element> m_rootEditableElement; |
TextCheckingRequestData m_requestData; |
+ int m_requestNumber; |
}; |
class SpellCheckRequester { |