summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 18:33:07 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 18:33:07 +0000
commite8db743ca973183c72b064ef7e9f408eb1c70543 (patch)
tree54ed2dbddb16ebeca744a0e51561e7a38869c4b8 /webkit/glue
parent7a1332522d6569f5edeced8c767b438590b76367 (diff)
downloadchromium_src-e8db743ca973183c72b064ef7e9f408eb1c70543.zip
chromium_src-e8db743ca973183c72b064ef7e9f408eb1c70543.tar.gz
chromium_src-e8db743ca973183c72b064ef7e9f408eb1c70543.tar.bz2
Chrome side needed for WebKit change to move the little remaining spellcheck code out of RenderView.
Review URL: http://codereview.chromium.org/6813090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/context_menu.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/context_menu.cc b/webkit/glue/context_menu.cc
index 317130e..0d68c03 100644
--- a/webkit/glue/context_menu.cc
+++ b/webkit/glue/context_menu.cc
@@ -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 {
const int32 CustomContextMenuContext::kCurrentRenderWidget = kint32max;
@@ -43,6 +46,11 @@ ContextMenuParams::ContextMenuParams(const WebKit::WebContextMenuData& data)
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]));