| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ | 5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ |
| 6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ | 6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 const blink::WebString& text, | 84 const blink::WebString& text, |
| 85 blink::WebTextCheckingTypeMask mask, | 85 blink::WebTextCheckingTypeMask mask, |
| 86 blink::WebVector<blink::WebTextCheckingResult>* results) override; | 86 blink::WebVector<blink::WebTextCheckingResult>* results) override; |
| 87 | 87 |
| 88 void requestCheckingOfText( | 88 void requestCheckingOfText( |
| 89 const blink::WebString& text, | 89 const blink::WebString& text, |
| 90 const blink::WebVector<uint32_t>& markers, | 90 const blink::WebVector<uint32_t>& markers, |
| 91 const blink::WebVector<unsigned>& marker_offsets, | 91 const blink::WebVector<unsigned>& marker_offsets, |
| 92 blink::WebTextCheckingCompletion* completion) override; | 92 blink::WebTextCheckingCompletion* completion) override; |
| 93 | 93 |
| 94 void cancelAllPendingRequests() override; |
| 94 void showSpellingUI(bool show) override; | 95 void showSpellingUI(bool show) override; |
| 95 bool isShowingSpellingUI() override; | 96 bool isShowingSpellingUI() override; |
| 96 void updateSpellingUIWithMisspelledWord( | 97 void updateSpellingUIWithMisspelledWord( |
| 97 const blink::WebString& word) override; | 98 const blink::WebString& word) override; |
| 98 | 99 |
| 99 #if !defined(USE_BROWSER_SPELLCHECKER) | 100 #if !defined(USE_BROWSER_SPELLCHECKER) |
| 100 void OnRespondSpellingService( | 101 void OnRespondSpellingService( |
| 101 int identifier, | 102 int identifier, |
| 102 bool succeeded, | 103 bool succeeded, |
| 103 const base::string16& text, | 104 const base::string16& text, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 128 // True if the browser is showing the spelling panel for us. | 129 // True if the browser is showing the spelling panel for us. |
| 129 bool spelling_panel_visible_; | 130 bool spelling_panel_visible_; |
| 130 | 131 |
| 131 // Weak pointer to shared (per RenderView) spellcheck data. | 132 // Weak pointer to shared (per RenderView) spellcheck data. |
| 132 SpellCheck* spellcheck_; | 133 SpellCheck* spellcheck_; |
| 133 | 134 |
| 134 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); | 135 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ | 138 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ |
| OLD | NEW |