Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 return; 268 return;
269 } 269 }
270 270
271 frame().spellChecker().markAndReplaceFor(m_processingRequest, results); 271 frame().spellChecker().markAndReplaceFor(m_processingRequest, results);
272 272
273 if (m_lastProcessedSequence < sequence) 273 if (m_lastProcessedSequence < sequence)
274 m_lastProcessedSequence = sequence; 274 m_lastProcessedSequence = sequence;
275 275
276 clearProcessingRequest(); 276 clearProcessingRequest();
277 if (!m_requestQueue.isEmpty()) 277 if (!m_requestQueue.isEmpty())
278 m_timerToProcessQueuedRequest.startOneShot(0, FROM_HERE); 278 m_timerToProcessQueuedRequest.startOneShot(0, BLINK_FROM_HERE);
279 } 279 }
280 280
281 void SpellCheckRequester::didCheckSucceed(int sequence, const Vector<TextCheckin gResult>& results) 281 void SpellCheckRequester::didCheckSucceed(int sequence, const Vector<TextCheckin gResult>& results)
282 { 282 {
283 TextCheckingRequestData requestData = m_processingRequest->data(); 283 TextCheckingRequestData requestData = m_processingRequest->data();
284 if (requestData.sequence() == sequence) { 284 if (requestData.sequence() == sequence) {
285 DocumentMarker::MarkerTypes markers = DocumentMarker::SpellCheckClientMa rkers(); 285 DocumentMarker::MarkerTypes markers = DocumentMarker::SpellCheckClientMa rkers();
286 if (!requestData.maskContains(TextCheckingTypeSpelling)) 286 if (!requestData.maskContains(TextCheckingTypeSpelling))
287 markers.remove(DocumentMarker::Spelling); 287 markers.remove(DocumentMarker::Spelling);
288 if (!requestData.maskContains(TextCheckingTypeGrammar)) 288 if (!requestData.maskContains(TextCheckingTypeGrammar))
(...skipping 11 matching lines...) Expand all
300 } 300 }
301 301
302 DEFINE_TRACE(SpellCheckRequester) 302 DEFINE_TRACE(SpellCheckRequester)
303 { 303 {
304 visitor->trace(m_frame); 304 visitor->trace(m_frame);
305 visitor->trace(m_processingRequest); 305 visitor->trace(m_processingRequest);
306 visitor->trace(m_requestQueue); 306 visitor->trace(m_requestQueue);
307 } 307 }
308 308
309 } // namespace blink 309 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698