| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 const WebKit::WebString& misspelled_word) OVERRIDE; | 74 const WebKit::WebString& misspelled_word) OVERRIDE; |
| 75 virtual void showSpellingUI(bool show) OVERRIDE; | 75 virtual void showSpellingUI(bool show) OVERRIDE; |
| 76 virtual bool isShowingSpellingUI() OVERRIDE; | 76 virtual bool isShowingSpellingUI() OVERRIDE; |
| 77 virtual void updateSpellingUIWithMisspelledWord( | 77 virtual void updateSpellingUIWithMisspelledWord( |
| 78 const WebKit::WebString& word) OVERRIDE; | 78 const WebKit::WebString& word) OVERRIDE; |
| 79 | 79 |
| 80 #if !defined(OS_MACOSX) | 80 #if !defined(OS_MACOSX) |
| 81 void OnRespondSpellingService( | 81 void OnRespondSpellingService( |
| 82 int identifier, | 82 int identifier, |
| 83 int offset, | 83 int offset, |
| 84 bool succeeded, |
| 85 const string16& text, |
| 84 const std::vector<SpellCheckResult>& results); | 86 const std::vector<SpellCheckResult>& results); |
| 85 | 87 |
| 86 // Returns whether |text| has word characters after |index|, i.e. whether a | 88 // Returns whether |text| has word characters after |index|, i.e. whether a |
| 87 // spellchecker needs to check this text. | 89 // spellchecker needs to check this text. |
| 88 bool HasWordCharacters(const string16& text, int index) const; | 90 bool HasWordCharacters(const string16& text, int index) const; |
| 89 | 91 |
| 90 // Returns a line that should be sent to a browser to spellcheck it. | 92 // Returns a line that should be sent to a browser to spellcheck it. |
| 91 bool GetRequestLine(const string16& text, | 93 bool GetRequestLine(const string16& text, |
| 92 string16* request, | 94 string16* request, |
| 93 int* offset) const; | 95 int* offset) const; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 124 bool spelling_panel_visible_; | 126 bool spelling_panel_visible_; |
| 125 | 127 |
| 126 // The ChromeContentRendererClient used to access the SpellChecker. | 128 // The ChromeContentRendererClient used to access the SpellChecker. |
| 127 // Weak reference. | 129 // Weak reference. |
| 128 chrome::ChromeContentRendererClient* chrome_content_renderer_client_; | 130 chrome::ChromeContentRendererClient* chrome_content_renderer_client_; |
| 129 | 131 |
| 130 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); | 132 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); |
| 131 }; | 133 }; |
| 132 | 134 |
| 133 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ | 135 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ |
| OLD | NEW |