| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void enqueueRequest(RawPtr<SpellCheckRequest>); | 121 void enqueueRequest(RawPtr<SpellCheckRequest>); |
| 122 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&); | 122 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&); |
| 123 void didCheckCancel(int sequence); | 123 void didCheckCancel(int sequence); |
| 124 void didCheck(int sequence, const Vector<TextCheckingResult>&); | 124 void didCheck(int sequence, const Vector<TextCheckingResult>&); |
| 125 | 125 |
| 126 void clearProcessingRequest(); | 126 void clearProcessingRequest(); |
| 127 | 127 |
| 128 Member<LocalFrame> m_frame; | 128 Member<LocalFrame> m_frame; |
| 129 LocalFrame& frame() const | 129 LocalFrame& frame() const |
| 130 { | 130 { |
| 131 ASSERT(m_frame); | 131 DCHECK(m_frame); |
| 132 return *m_frame; | 132 return *m_frame; |
| 133 } | 133 } |
| 134 | 134 |
| 135 int m_lastRequestSequence; | 135 int m_lastRequestSequence; |
| 136 int m_lastProcessedSequence; | 136 int m_lastProcessedSequence; |
| 137 | 137 |
| 138 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest; | 138 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest; |
| 139 | 139 |
| 140 Member<SpellCheckRequest> m_processingRequest; | 140 Member<SpellCheckRequest> m_processingRequest; |
| 141 | 141 |
| 142 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; | 142 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; |
| 143 RequestQueue m_requestQueue; | 143 RequestQueue m_requestQueue; |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace blink | 146 } // namespace blink |
| 147 | 147 |
| 148 #endif // SpellCheckRequester_h | 148 #endif // SpellCheckRequester_h |
| OLD | NEW |