| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 25 matching lines...) Expand all Loading... |
| 36 #include "wtf/RefPtr.h" | 36 #include "wtf/RefPtr.h" |
| 37 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
| 38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class LocalFrame; | 42 class LocalFrame; |
| 43 class SpellCheckRequester; | 43 class SpellCheckRequester; |
| 44 class TextCheckerClient; | 44 class TextCheckerClient; |
| 45 | 45 |
| 46 class SpellCheckRequest final : public TextCheckingRequest { | 46 class CORE_EXPORT SpellCheckRequest final : public TextCheckingRequest { |
| 47 public: | 47 public: |
| 48 static SpellCheckRequest* create(const EphemeralRange& checkingRange, | 48 static SpellCheckRequest* create(const EphemeralRange& checkingRange, |
| 49 int requestNumber = 0); | 49 int requestNumber = 0); |
| 50 | 50 |
| 51 ~SpellCheckRequest() override; | 51 ~SpellCheckRequest() override; |
| 52 void dispose(); | 52 void dispose(); |
| 53 | 53 |
| 54 Range* checkingRange() const { return m_checkingRange; } | 54 Range* checkingRange() const { return m_checkingRange; } |
| 55 Element* rootEditableElement() const { return m_rootEditableElement; } | 55 Element* rootEditableElement() const { return m_rootEditableElement; } |
| 56 | 56 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 72 const Vector<unsigned>& documentMarkerOffsets, | 72 const Vector<unsigned>& documentMarkerOffsets, |
| 73 int requestNumber); | 73 int requestNumber); |
| 74 | 74 |
| 75 Member<SpellCheckRequester> m_requester; | 75 Member<SpellCheckRequester> m_requester; |
| 76 Member<Range> m_checkingRange; | 76 Member<Range> m_checkingRange; |
| 77 Member<Element> m_rootEditableElement; | 77 Member<Element> m_rootEditableElement; |
| 78 TextCheckingRequestData m_requestData; | 78 TextCheckingRequestData m_requestData; |
| 79 int m_requestNumber; | 79 int m_requestNumber; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 class SpellCheckRequester final | 82 class CORE_EXPORT SpellCheckRequester final |
| 83 : public GarbageCollectedFinalized<SpellCheckRequester> { | 83 : public GarbageCollectedFinalized<SpellCheckRequester> { |
| 84 WTF_MAKE_NONCOPYABLE(SpellCheckRequester); | 84 WTF_MAKE_NONCOPYABLE(SpellCheckRequester); |
| 85 | 85 |
| 86 public: | 86 public: |
| 87 static SpellCheckRequester* create(LocalFrame& frame) { | 87 static SpellCheckRequester* create(LocalFrame& frame) { |
| 88 return new SpellCheckRequester(frame); | 88 return new SpellCheckRequester(frame); |
| 89 } | 89 } |
| 90 | 90 |
| 91 ~SpellCheckRequester(); | 91 ~SpellCheckRequester(); |
| 92 DECLARE_TRACE(); | 92 DECLARE_TRACE(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 Member<SpellCheckRequest> m_processingRequest; | 131 Member<SpellCheckRequest> m_processingRequest; |
| 132 | 132 |
| 133 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; | 133 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; |
| 134 RequestQueue m_requestQueue; | 134 RequestQueue m_requestQueue; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace blink | 137 } // namespace blink |
| 138 | 138 |
| 139 #endif // SpellCheckRequester_h | 139 #endif // SpellCheckRequester_h |
| OLD | NEW |