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

Side by Side Diff: Source/core/editing/spellcheck/SpellCheckRequester.h

Issue 1335573004: Introduce Range::dispose() for prompt detachment from owner Document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
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 void clearProcessingRequest();
120
119 RawPtrWillBeMember<LocalFrame> m_frame; 121 RawPtrWillBeMember<LocalFrame> m_frame;
120 LocalFrame& frame() const 122 LocalFrame& frame() const
121 { 123 {
122 ASSERT(m_frame); 124 ASSERT(m_frame);
123 return *m_frame; 125 return *m_frame;
124 } 126 }
125 127
126 int m_lastRequestSequence; 128 int m_lastRequestSequence;
127 int m_lastProcessedSequence; 129 int m_lastProcessedSequence;
128 130
129 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest; 131 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest;
130 132
131 RefPtrWillBeMember<SpellCheckRequest> m_processingRequest; 133 RefPtrWillBeMember<SpellCheckRequest> m_processingRequest;
132 134
133 typedef WillBeHeapDeque<RefPtrWillBeMember<SpellCheckRequest>> RequestQueue; 135 typedef WillBeHeapDeque<RefPtrWillBeMember<SpellCheckRequest>> RequestQueue;
134 RequestQueue m_requestQueue; 136 RequestQueue m_requestQueue;
135 }; 137 };
136 138
137 } // namespace blink 139 } // namespace blink
138 140
139 #endif // SpellCheckRequester_h 141 #endif // SpellCheckRequester_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698