| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // RenderViewObserver implementation. | 74 // RenderViewObserver implementation. |
| 75 void OnDestruct() override; | 75 void OnDestruct() override; |
| 76 | 76 |
| 77 // blink::WebSpellCheckClient implementation. | 77 // blink::WebSpellCheckClient implementation. |
| 78 void spellCheck( | 78 void spellCheck( |
| 79 const blink::WebString& text, | 79 const blink::WebString& text, |
| 80 int& offset, | 80 int& offset, |
| 81 int& length, | 81 int& length, |
| 82 blink::WebVector<blink::WebString>* optional_suggestions) override; | 82 blink::WebVector<blink::WebString>* optional_suggestions) override; |
| 83 void checkTextOfParagraph( | |
| 84 const blink::WebString& text, | |
| 85 blink::WebTextCheckingTypeMask mask, | |
| 86 blink::WebVector<blink::WebTextCheckingResult>* results) override; | |
| 87 | 83 |
| 88 void requestCheckingOfText( | 84 void requestCheckingOfText( |
| 89 const blink::WebString& text, | 85 const blink::WebString& text, |
| 90 const blink::WebVector<uint32_t>& markers, | 86 const blink::WebVector<uint32_t>& markers, |
| 91 const blink::WebVector<unsigned>& marker_offsets, | 87 const blink::WebVector<unsigned>& marker_offsets, |
| 92 blink::WebTextCheckingCompletion* completion) override; | 88 blink::WebTextCheckingCompletion* completion) override; |
| 93 | 89 |
| 94 void showSpellingUI(bool show) override; | 90 void showSpellingUI(bool show) override; |
| 95 bool isShowingSpellingUI() override; | 91 bool isShowingSpellingUI() override; |
| 96 void updateSpellingUIWithMisspelledWord( | 92 void updateSpellingUIWithMisspelledWord( |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // True if the browser is showing the spelling panel for us. | 124 // True if the browser is showing the spelling panel for us. |
| 129 bool spelling_panel_visible_; | 125 bool spelling_panel_visible_; |
| 130 | 126 |
| 131 // Weak pointer to shared (per RenderView) spellcheck data. | 127 // Weak pointer to shared (per RenderView) spellcheck data. |
| 132 SpellCheck* spellcheck_; | 128 SpellCheck* spellcheck_; |
| 133 | 129 |
| 134 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); | 130 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); |
| 135 }; | 131 }; |
| 136 | 132 |
| 137 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ | 133 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ |
| OLD | NEW |