| Index: chrome/common/spellcheck_messages.h
|
| diff --git a/chrome/common/spellcheck_messages.h b/chrome/common/spellcheck_messages.h
|
| index e69983ba94420995b0a62c34c87fb5421a4141b1..e948b472474e991db84fcf7991c07b4a95783f9b 100644
|
| --- a/chrome/common/spellcheck_messages.h
|
| +++ b/chrome/common/spellcheck_messages.h
|
| @@ -5,21 +5,22 @@
|
| // IPC messages for spellcheck.
|
| // Multiply-included message file, hence no include guard.
|
|
|
| +#include "chrome/common/spellcheck_result.h"
|
| #include "ipc/ipc_message_macros.h"
|
| #include "ipc/ipc_platform_file.h"
|
| -#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult.h"
|
| +
|
|
|
| #define IPC_MESSAGE_START SpellCheckMsgStart
|
|
|
| -IPC_ENUM_TRAITS(WebKit::WebTextCheckingResult::Error)
|
| +IPC_ENUM_TRAITS(SpellCheckResult::Type)
|
|
|
| -IPC_STRUCT_TRAITS_BEGIN(WebKit::WebTextCheckingResult)
|
| - IPC_STRUCT_TRAITS_MEMBER(error)
|
| - IPC_STRUCT_TRAITS_MEMBER(position)
|
| +IPC_STRUCT_TRAITS_BEGIN(SpellCheckResult)
|
| + IPC_STRUCT_TRAITS_MEMBER(type)
|
| + IPC_STRUCT_TRAITS_MEMBER(location)
|
| IPC_STRUCT_TRAITS_MEMBER(length)
|
| + IPC_STRUCT_TRAITS_MEMBER(replacement)
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| -
|
| // Messages sent from the browser to the renderer.
|
|
|
| IPC_MESSAGE_ROUTED0(SpellCheckMsg_ToggleSpellCheck)
|
| @@ -33,7 +34,7 @@ IPC_MESSAGE_ROUTED1(SpellCheckMsg_ToggleSpellPanel,
|
| IPC_MESSAGE_ROUTED3(SpellCheckMsg_RespondTextCheck,
|
| int /* request identifier given by WebKit */,
|
| int /* document tag */,
|
| - std::vector<WebKit::WebTextCheckingResult>)
|
| + std::vector<SpellCheckResult>)
|
| #endif
|
|
|
| // This message tells the renderer to advance to the next misspelling. It is
|
| @@ -64,7 +65,7 @@ IPC_MESSAGE_CONTROL1(SpellCheckMsg_EnableAutoSpellCorrect,
|
| IPC_MESSAGE_ROUTED3(SpellCheckMsg_RespondSpellingService,
|
| int /* request identifier given by WebKit */,
|
| int /* document tag */,
|
| - std::vector<WebKit::WebTextCheckingResult>)
|
| + std::vector<SpellCheckResult>)
|
| #endif
|
|
|
| // Messages sent from the renderer to the browser.
|
|
|