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

Side by Side Diff: chrome/browser/spellcheck_host.h

Issue 7121006: Introduced additional spellcheck related histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Uploading the patch for our commit queue Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/spellcheck_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
93 // The value of |delta| is accumulated to the total count, and only
94 // update tracked ratio if |delta| is zero.
95 virtual void RecordSuggestionStats(int delta) = 0;
96
91 // Collects a histogram for misspelled word replacement 97 // Collects a histogram for misspelled word replacement
92 // to be uploaded via UMA 98 // to be uploaded via UMA.
99 // The value of |delta| is accumulated to the total count, and only
100 // update tracked ratio if |delta| is zero.
93 virtual void RecordReplacedWordStats(int delta) = 0; 101 virtual void RecordReplacedWordStats(int delta) = 0;
94 102
95 // This function computes a vector of strings which are to be displayed in 103 // 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 104 // 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. 105 // 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 106 // TODO(port): this should take a vector of string16, but the implementation
99 // has some dependencies in l10n util that need porting first. 107 // has some dependencies in l10n util that need porting first.
100 static int GetSpellCheckLanguages(Profile* profile, 108 static int GetSpellCheckLanguages(Profile* profile,
101 std::vector<std::string>* languages); 109 std::vector<std::string>* languages);
102 }; 110 };
103 111
104 #endif // CHROME_BROWSER_SPELLCHECK_HOST_H_ 112 #endif // CHROME_BROWSER_SPELLCHECK_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/spellcheck_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698