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

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

Issue 2268183006: Added accessibility notification from Blink when spelling mistakes are detected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 explicit SpellCheckRequester(LocalFrame&); 108 explicit SpellCheckRequester(LocalFrame&);
109 109
110 TextCheckerClient& client() const; 110 TextCheckerClient& client() const;
111 void timerFiredToProcessQueuedRequest(TimerBase*); 111 void timerFiredToProcessQueuedRequest(TimerBase*);
112 void invokeRequest(SpellCheckRequest*); 112 void invokeRequest(SpellCheckRequest*);
113 void enqueueRequest(SpellCheckRequest*); 113 void enqueueRequest(SpellCheckRequest*);
114 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&); 114 void didCheckSucceed(int sequence, const Vector<TextCheckingResult>&);
115 void didCheckCancel(int sequence); 115 void didCheckCancel(int sequence);
116 void didCheck(int sequence, const Vector<TextCheckingResult>&); 116 void didCheck(int sequence, const Vector<TextCheckingResult>&);
117 void reportDocumentMarkersChangeToAccessibility() const;
117 118
118 void clearProcessingRequest(); 119 void clearProcessingRequest();
119 120
120 Member<LocalFrame> m_frame; 121 Member<LocalFrame> m_frame;
121 LocalFrame& frame() const 122 LocalFrame& frame() const
122 { 123 {
123 DCHECK(m_frame); 124 DCHECK(m_frame);
124 return *m_frame; 125 return *m_frame;
125 } 126 }
126 127
127 int m_lastRequestSequence; 128 int m_lastRequestSequence;
128 int m_lastProcessedSequence; 129 int m_lastProcessedSequence;
129 130
130 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest; 131 Timer<SpellCheckRequester> m_timerToProcessQueuedRequest;
131 132
132 Member<SpellCheckRequest> m_processingRequest; 133 Member<SpellCheckRequest> m_processingRequest;
133 134
134 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue; 135 typedef HeapDeque<Member<SpellCheckRequest>> RequestQueue;
135 RequestQueue m_requestQueue; 136 RequestQueue m_requestQueue;
136 }; 137 };
137 138
138 } // namespace blink 139 } // namespace blink
139 140
140 #endif // SpellCheckRequester_h 141 #endif // SpellCheckRequester_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698