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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 bool canCheckAsynchronously(Range*) const; | 110 bool canCheckAsynchronously(Range*) const; |
111 TextCheckerClient& client() const; | 111 TextCheckerClient& client() const; |
112 void timerFiredToProcessQueuedRequest(Timer<SpellCheckRequester>*); | 112 void timerFiredToProcessQueuedRequest(Timer<SpellCheckRequester>*); |
113 void invokeRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>); | 113 void invokeRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>); |
114 void enqueueRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>); | 114 void enqueueRequest(PassRefPtrWillBeRawPtr<SpellCheckRequest>); |
115 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&); | 115 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&); |
116 void didCheckCancel(int sequence); | 116 void didCheckCancel(int sequence); |
117 void didCheck(int sequence, const Vector<TextCheckingResult>&); | 117 void didCheck(int sequence, const Vector<TextCheckingResult>&); |
118 | 118 |
119 RawPtrWillBeMember<LocalFrame> m_frame; | 119 RawPtrWillBeMember<LocalFrame> m_frame; |
120 LocalFrame& frame() const { ASSERT(m_frame); return *m_frame; } | 120 LocalFrame& frame() const |
| 121 { |
| 122 ASSERT(m_frame); |
| 123 return *m_frame; |
| 124 } |
121 | 125 |
122 int m_lastRequestSequence; | 126 int m_lastRequestSequence; |
123 int m_lastProcessedSequence; | 127 int m_lastProcessedSequence; |
124 | 128 |
125 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest; | 129 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest; |
126 | 130 |
127 RefPtrWillBeMember<SpellCheckRequest> m_processingRequest; | 131 RefPtrWillBeMember<SpellCheckRequest> m_processingRequest; |
128 | 132 |
129 typedef WillBeHeapDeque<RefPtrWillBeMember<SpellCheckRequest> > RequestQueue
; | 133 typedef WillBeHeapDeque<RefPtrWillBeMember<SpellCheckRequest> > RequestQueue
; |
130 RequestQueue m_requestQueue; | 134 RequestQueue m_requestQueue; |
131 }; | 135 }; |
132 | 136 |
133 } // namespace blink | 137 } // namespace blink |
134 | 138 |
135 #endif // SpellCheckRequester_h | 139 #endif // SpellCheckRequester_h |
OLD | NEW |