Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_SPELLCHECK_HOST_H_ | 5 #ifndef CHROME_BROWSER_SPELLCHECK_HOST_H_ |
| 6 #define CHROME_BROWSER_SPELLCHECK_HOST_H_ | 6 #define CHROME_BROWSER_SPELLCHECK_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 virtual const std::string& GetLastAddedFile() const = 0; | 81 virtual const std::string& GetLastAddedFile() const = 0; |
| 82 | 82 |
| 83 virtual const std::string& GetLanguage() const = 0; | 83 virtual const std::string& GetLanguage() const = 0; |
| 84 | 84 |
| 85 virtual bool IsUsingPlatformChecker() const = 0; | 85 virtual bool IsUsingPlatformChecker() const = 0; |
| 86 | 86 |
| 87 // Collects status of spellchecking enabling state, which is | 87 // Collects status of spellchecking enabling state, which is |
| 88 // to be uploaded via UMA | 88 // to be uploaded via UMA |
| 89 virtual void RecordCheckedWordStats(bool misspell) = 0; | 89 virtual void RecordCheckedWordStats(bool misspell) = 0; |
| 90 | 90 |
| 91 // Collects a histogram for context menu showing as a spell correction | |
| 92 // attempt to be uploaded via UMA | |
|
brettw
2011/06/12 13:02:59
What is "delta" for? The comment should say this.
| |
| 93 virtual void RecordSuggestionStats(int delta) = 0; | |
| 94 | |
| 91 // Collects a histogram for misspelled word replacement | 95 // Collects a histogram for misspelled word replacement |
| 92 // to be uploaded via UMA | 96 // to be uploaded via UMA |
| 93 virtual void RecordReplacedWordStats(int delta) = 0; | 97 virtual void RecordReplacedWordStats(int delta) = 0; |
| 94 | 98 |
| 95 // This function computes a vector of strings which are to be displayed in | 99 // This function computes a vector of strings which are to be displayed in |
| 96 // the context menu over a text area for changing spell check languages. It | 100 // the context menu over a text area for changing spell check languages. It |
| 97 // returns the index of the current spell check language in the vector. | 101 // returns the index of the current spell check language in the vector. |
| 98 // TODO(port): this should take a vector of string16, but the implementation | 102 // TODO(port): this should take a vector of string16, but the implementation |
| 99 // has some dependencies in l10n util that need porting first. | 103 // has some dependencies in l10n util that need porting first. |
| 100 static int GetSpellCheckLanguages(Profile* profile, | 104 static int GetSpellCheckLanguages(Profile* profile, |
| 101 std::vector<std::string>* languages); | 105 std::vector<std::string>* languages); |
| 102 }; | 106 }; |
| 103 | 107 |
| 104 #endif // CHROME_BROWSER_SPELLCHECK_HOST_H_ | 108 #endif // CHROME_BROWSER_SPELLCHECK_HOST_H_ |
| OLD | NEW |