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

Unified Diff: webkit/glue/context_menu.cc

Issue 6813090: Chrome side needed for WebKit change to move the little remaining spellcheck code out of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « content/renderer/render_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/context_menu.cc
===================================================================
--- webkit/glue/context_menu.cc (revision 81105)
+++ webkit/glue/context_menu.cc (working copy)
@@ -5,6 +5,9 @@
#include "webkit/glue/context_menu.h"
#include "webkit/glue/glue_serialize.h"
+// TODO(jam): remove me once WebKit is merged.
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebSpellCheckClient.h"
+
namespace webkit_glue {
CustomContextMenuContext::CustomContextMenuContext()
@@ -40,6 +43,11 @@
edit_flags(data.editFlags),
security_info(data.securityInfo),
frame_charset(data.frameEncoding.utf8()) {
+#if defined(WEBSPELLCHECKCLIENT_HAS_SUGGESTIONS)
+ for (size_t i = 0; i < data.dictionarySuggestions.size(); ++i)
+ dictionary_suggestions.push_back(data.dictionarySuggestions[i]);
+#endif
+
custom_context.is_pepper_menu = false;
for (size_t i = 0; i < data.customItems.size(); ++i)
custom_items.push_back(WebMenuItem(data.customItems[i]));
« no previous file with comments | « content/renderer/render_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698