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

Side by Side 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: Fix unused variable error. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 void AppendVideoItems(); 121 void AppendVideoItems();
122 void AppendMediaItems(); 122 void AppendMediaItems();
123 void AppendPluginItems(); 123 void AppendPluginItems();
124 void AppendPageItems(); 124 void AppendPageItems();
125 void AppendCopyItem(); 125 void AppendCopyItem();
126 void AppendPrintItem(); 126 void AppendPrintItem();
127 void AppendMediaRouterItem(); 127 void AppendMediaRouterItem();
128 void AppendRotationItems(); 128 void AppendRotationItems();
129 void AppendEditableItems(); 129 void AppendEditableItems();
130 void AppendLanguageSettings(); 130 void AppendLanguageSettings();
131 void AppendSpellcheckSuggestionItems();
131 void AppendSearchProvider(); 132 void AppendSearchProvider();
132 #if defined(ENABLE_EXTENSIONS) 133 #if defined(ENABLE_EXTENSIONS)
133 void AppendAllExtensionItems(); 134 void AppendAllExtensionItems();
134 void AppendCurrentExtensionItems(); 135 void AppendCurrentExtensionItems();
135 #endif 136 #endif
136 void AppendPrintPreviewItems(); 137 void AppendPrintPreviewItems();
137 void AppendSearchWebForImageItems(); 138 void AppendSearchWebForImageItems();
138 void AppendSpellingSuggestionsSubMenu();
139 void AppendProtocolHandlerSubMenu(); 139 void AppendProtocolHandlerSubMenu();
140 void AppendPasswordItems(); 140 void AppendPasswordItems();
141 141
142 // Copy to the clipboard an image located at a point in the RenderView 142 // Copy to the clipboard an image located at a point in the RenderView
143 void CopyImageAt(int x, int y); 143 void CopyImageAt(int x, int y);
144 144
145 // Load the original image located at a point in the RenderView. 145 // Load the original image located at a point in the RenderView.
146 void LoadOriginalImage(); 146 void LoadOriginalImage();
147 147
148 // Get an image located at a point in the RenderView for search. 148 // Get an image located at a point in the RenderView for search.
(...skipping 21 matching lines...) Expand all
170 GURL selection_navigation_url_; 170 GURL selection_navigation_url_;
171 171
172 ui::SimpleMenuModel profile_link_submenu_model_; 172 ui::SimpleMenuModel profile_link_submenu_model_;
173 bool multiple_profiles_open_; 173 bool multiple_profiles_open_;
174 ui::SimpleMenuModel protocol_handler_submenu_model_; 174 ui::SimpleMenuModel protocol_handler_submenu_model_;
175 ProtocolHandlerRegistry* protocol_handler_registry_; 175 ProtocolHandlerRegistry* protocol_handler_registry_;
176 176
177 // An observer that handles spelling-menu items. 177 // An observer that handles spelling-menu items.
178 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_; 178 scoped_ptr<SpellingMenuObserver> spelling_menu_observer_;
179 179
180 #if !defined(USE_BROWSER_SPELLCHECKER)
181 // An observer that handles a 'spell-checker options' submenu.
182 scoped_ptr<SpellCheckerSubMenuObserver> spellchecker_submenu_observer_;
183 #endif
184
180 #if defined(ENABLE_PRINT_PREVIEW) 185 #if defined(ENABLE_PRINT_PREVIEW)
181 // An observer that disables menu items when print preview is active. 186 // An observer that disables menu items when print preview is active.
182 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; 187 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_;
183 #endif 188 #endif
184 189
185 // In the case of a MimeHandlerView this will point to the WebContents that 190 // In the case of a MimeHandlerView this will point to the WebContents that
186 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as 191 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as
187 // |source_web_contents_|. 192 // |source_web_contents_|.
188 content::WebContents* const embedder_web_contents_; 193 content::WebContents* const embedder_web_contents_;
189 194
190 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 195 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
191 }; 196 };
192 197
193 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ 198 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698