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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_action.h

Issue 15934002: Add IN_DICTIONARY feedback type for spelling service (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/spellchecker/spellcheck_action.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_SPELLCHECKER_SPELLCHECK_ACTION_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_ACTION_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_ACTION_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_ACTION_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 9
10 namespace base { 10 namespace base {
11 class DictionaryValue; 11 class DictionaryValue;
12 } 12 }
13 13
14 // User's action on a misspelled word. 14 // User's action on a misspelled word.
15 class SpellcheckAction { 15 class SpellcheckAction {
16 public: 16 public:
17 // Type of spellcheck action. 17 // Type of spellcheck action.
18 enum SpellcheckActionType { 18 enum SpellcheckActionType {
19 // User added the word to the dictionary and cannot take more actions on 19 // User added the word to the dictionary and cannot take more actions on
20 // this misspelling. 20 // this misspelling.
21 TYPE_ADD_TO_DICT, 21 TYPE_ADD_TO_DICT,
22 // User took a look at the suggestions in the context menu, but did not 22 // User took a look at the suggestions in the context menu, but did not
23 // select any suggestions. The user cannot take any more actions on the 23 // select any suggestions. The user cannot take any more actions on the
24 // misspelling, because it has been deleted from the web page. 24 // misspelling, because it has been deleted from the web page.
25 TYPE_IGNORE, 25 TYPE_IGNORE,
26 // The misspelling is in user's custom spellcheck dictionary. The user will
27 // not see spellcheck suggestions for this misspelling.
28 TYPE_IN_DICTIONARY,
26 // The user manually corrected the word to |value|. The user cannot take 29 // The user manually corrected the word to |value|. The user cannot take
27 // more actions on this misspelling. 30 // more actions on this misspelling.
28 TYPE_MANUALLY_CORRECTED, 31 TYPE_MANUALLY_CORRECTED,
29 // The user has taken no action on the misspelling and will not take any 32 // The user has taken no action on the misspelling and will not take any
30 // more actions, because the misspelled text has been removed from the web 33 // more actions, because the misspelled text has been removed from the web
31 // page. 34 // page.
32 TYPE_NO_ACTION, 35 TYPE_NO_ACTION,
33 // The user has taken no action on the misspelled yet, but might take an 36 // The user has taken no action on the misspelled yet, but might take an
34 // action in the future, because the misspelling is still on the web page. 37 // action in the future, because the misspelling is still on the web page.
35 TYPE_PENDING, 38 TYPE_PENDING,
(...skipping 27 matching lines...) Expand all
63 SpellcheckActionType type; 66 SpellcheckActionType type;
64 67
65 // The index for the user action, if applicable. 68 // The index for the user action, if applicable.
66 int index; 69 int index;
67 70
68 // The value for the user action, if applicable. 71 // The value for the user action, if applicable.
69 string16 value; 72 string16 value;
70 }; 73 };
71 74
72 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_ACTION_H_ 75 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_ACTION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/spellchecker/spellcheck_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698