| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 157 |
| 158 SpellCheckRequester::~SpellCheckRequester() | 158 SpellCheckRequester::~SpellCheckRequester() |
| 159 { | 159 { |
| 160 } | 160 } |
| 161 | 161 |
| 162 TextCheckerClient& SpellCheckRequester::client() const | 162 TextCheckerClient& SpellCheckRequester::client() const |
| 163 { | 163 { |
| 164 return frame().spellChecker().textChecker(); | 164 return frame().spellChecker().textChecker(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 void SpellCheckRequester::timerFiredToProcessQueuedRequest(Timer<SpellCheckReque
ster>*) | 167 void SpellCheckRequester::timerFiredToProcessQueuedRequest(TimerBase*) |
| 168 { | 168 { |
| 169 DCHECK(!m_requestQueue.isEmpty()); | 169 DCHECK(!m_requestQueue.isEmpty()); |
| 170 if (m_requestQueue.isEmpty()) | 170 if (m_requestQueue.isEmpty()) |
| 171 return; | 171 return; |
| 172 | 172 |
| 173 invokeRequest(m_requestQueue.takeFirst()); | 173 invokeRequest(m_requestQueue.takeFirst()); |
| 174 } | 174 } |
| 175 | 175 |
| 176 static bool canCheckAsynchronously(const Range* range) | 176 static bool canCheckAsynchronously(const Range* range) |
| 177 { | 177 { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 } | 307 } |
| 308 | 308 |
| 309 DEFINE_TRACE(SpellCheckRequester) | 309 DEFINE_TRACE(SpellCheckRequester) |
| 310 { | 310 { |
| 311 visitor->trace(m_frame); | 311 visitor->trace(m_frame); |
| 312 visitor->trace(m_processingRequest); | 312 visitor->trace(m_processingRequest); |
| 313 visitor->trace(m_requestQueue); | 313 visitor->trace(m_requestQueue); |
| 314 } | 314 } |
| 315 | 315 |
| 316 } // namespace blink | 316 } // namespace blink |
| OLD | NEW |