summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/spellcheck_marker.h3
-rw-r--r--chrome/common/spellcheck_messages.h12
2 files changed, 13 insertions, 2 deletions
diff --git a/chrome/common/spellcheck_marker.h b/chrome/common/spellcheck_marker.h
index 0acb7f4..551f7dc 100644
--- a/chrome/common/spellcheck_marker.h
+++ b/chrome/common/spellcheck_marker.h
@@ -6,6 +6,9 @@
#define CHROME_COMMON_SPELLCHECK_MARKER_H_
struct SpellCheckMarker {
+ // IPC requires a default constructor.
+ SpellCheckMarker() : hash(-1), offset(-1) {}
+
SpellCheckMarker(uint32 hash, size_t offset) : hash(hash), offset(offset) {}
uint32 hash;
diff --git a/chrome/common/spellcheck_messages.h b/chrome/common/spellcheck_messages.h
index b001559..d808b80 100644
--- a/chrome/common/spellcheck_messages.h
+++ b/chrome/common/spellcheck_messages.h
@@ -5,6 +5,7 @@
// IPC messages for spellcheck.
// Multiply-included message file, hence no include guard.
+#include "chrome/common/spellcheck_marker.h"
#include "chrome/common/spellcheck_result.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_platform_file.h"
@@ -19,6 +20,12 @@ IPC_STRUCT_TRAITS_BEGIN(SpellCheckResult)
IPC_STRUCT_TRAITS_MEMBER(location)
IPC_STRUCT_TRAITS_MEMBER(length)
IPC_STRUCT_TRAITS_MEMBER(replacement)
+ IPC_STRUCT_TRAITS_MEMBER(hash)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(SpellCheckMarker)
+ IPC_STRUCT_TRAITS_MEMBER(hash)
+ IPC_STRUCT_TRAITS_MEMBER(offset)
IPC_STRUCT_TRAITS_END()
// Messages sent from the browser to the renderer.
@@ -97,10 +104,11 @@ IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_NotifyChecked,
// Asks the Spelling service to check text. When the service finishes checking
// the input text, it sends a SpellingCheckMsg_RespondSpellingService with
// text-check results.
-IPC_MESSAGE_CONTROL3(SpellCheckHostMsg_CallSpellingService,
+IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_CallSpellingService,
int /* route_id for response */,
int /* request identifier given by WebKit */,
- string16 /* sentence */)
+ string16 /* sentence */,
+ std::vector<SpellCheckMarker> /* markers */)
#endif
#if defined(OS_MACOSX)