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

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

Issue 15750002: Send IGNORE feedback to spellcheck service when user cancels spellcheck menu (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Initialize misspelling hash 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/tab_contents/spelling_menu_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/spelling_menu_observer.h
diff --git a/chrome/browser/tab_contents/spelling_menu_observer.h b/chrome/browser/tab_contents/spelling_menu_observer.h
index 03c2c4ed3bc631c01086dab8f171dedecd079bbb..f2bdbb0826bed0c4bd037dd307fe3eb8445de8e8 100644
--- a/chrome/browser/tab_contents/spelling_menu_observer.h
+++ b/chrome/browser/tab_contents/spelling_menu_observer.h
@@ -48,6 +48,7 @@ class SpellingMenuObserver : public RenderViewContextMenuObserver {
virtual bool IsCommandIdChecked(int command_id) OVERRIDE;
virtual bool IsCommandIdEnabled(int command_id) OVERRIDE;
virtual void ExecuteCommand(int command_id) OVERRIDE;
+ virtual 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.
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 | « no previous file | chrome/browser/tab_contents/spelling_menu_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698