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

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

Issue 1647723002: [win/cros/lin] Add back the spellcheck menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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
Index: chrome/browser/renderer_context_menu/render_view_context_menu.h
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.h b/chrome/browser/renderer_context_menu/render_view_context_menu.h
index 051fc8237905991d61027690f398dbc4c931c6e9..68171d9cdee89da4e24c8bb715e65c46b7ff5f21 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.h
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.h
@@ -29,7 +29,7 @@
class PrintPreviewContextMenuObserver;
class Profile;
class SpellingMenuObserver;
-class SpellCheckerSubMenuObserver;
+class SpellingOptionsSubMenuObserver;
namespace content {
class RenderFrameHost;
@@ -128,6 +128,7 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
void AppendRotationItems();
void AppendEditableItems();
void AppendLanguageSettings();
+ void AppendSpellingSuggestionItems();
void AppendSearchProvider();
#if defined(ENABLE_EXTENSIONS)
void AppendAllExtensionItems();
@@ -135,7 +136,6 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
#endif
void AppendPrintPreviewItems();
void AppendSearchWebForImageItems();
- void AppendSpellingSuggestionsSubMenu();
void AppendProtocolHandlerSubMenu();
void AppendPasswordItems();
@@ -174,8 +174,15 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
ui::SimpleMenuModel protocol_handler_submenu_model_;
ProtocolHandlerRegistry* protocol_handler_registry_;
- // An observer that handles spelling-menu items.
- scoped_ptr<SpellingMenuObserver> spelling_menu_observer_;
+ // An observer that handles spelling suggestions, "Add to dictionary", and
+ // "Ask Google for suggestions" items.
+ scoped_ptr<SpellingMenuObserver> spelling_suggestions_menu_observer_;
+
+#if !defined(OS_MACOSX)
+ // An observer that handles the submenu for showing spelling options. This
+ // submenu lets users select the spelling language, for example.
+ scoped_ptr<SpellingOptionsSubMenuObserver> spelling_options_submenu_observer_;
+#endif
#if defined(ENABLE_PRINT_PREVIEW)
// An observer that disables menu items when print preview is active.

Powered by Google App Engine
This is Rietveld 408576698