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

Unified Diff: chrome/browser/renderer_context_menu/spelling_menu_observer.h

Issue 1006953003: Revert "Remove spellcheck feedback." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/renderer_context_menu/spelling_menu_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_context_menu/spelling_menu_observer.h
diff --git a/chrome/browser/renderer_context_menu/spelling_menu_observer.h b/chrome/browser/renderer_context_menu/spelling_menu_observer.h
index e79b1e09bf488ea073257870aab8101948c765a1..a29965de2f727d95129101daa737c520e87fadaf 100644
--- a/chrome/browser/renderer_context_menu/spelling_menu_observer.h
+++ b/chrome/browser/renderer_context_menu/spelling_menu_observer.h
@@ -48,6 +48,7 @@ class SpellingMenuObserver : public RenderViewContextMenuObserver {
bool IsCommandIdChecked(int command_id) override;
bool IsCommandIdEnabled(int command_id) override;
void ExecuteCommand(int command_id) override;
+ void OnMenuCancel() override;
// A callback function called when the Spelling service finishes checking a
// misspelled word.
@@ -87,6 +88,10 @@ class SpellingMenuObserver : public RenderViewContextMenuObserver {
// this word to the custom-word dictionary.
base::string16 misspelled_word_;
+ // The hash identifier for the misspelled word. Used for collecting user
+ // feedback to spellcheck suggestions.
+ uint32 misspelling_hash_;
+
// The string representing the result of this call. This string is a
// suggestion when this call finished successfully. Otherwise it is error
// text. Until we receive a response from the Spelling service, this string
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/renderer_context_menu/spelling_menu_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698