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