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

Unified Diff: chrome/common/spellcheck_messages.h

Issue 9368052: Removed WebTextCheckingResult legacy API use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a build break on Mac. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/spellcheck_messages.h
diff --git a/chrome/common/spellcheck_messages.h b/chrome/common/spellcheck_messages.h
index e69983ba94420995b0a62c34c87fb5421a4141b1..89702e6a72e65332ddd8325e11fd04aa74b3175c 100644
--- a/chrome/common/spellcheck_messages.h
+++ b/chrome/common/spellcheck_messages.h
@@ -5,20 +5,12 @@
// 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_STRUCT_TRAITS_BEGIN(WebKit::WebTextCheckingResult)
- IPC_STRUCT_TRAITS_MEMBER(error)
- IPC_STRUCT_TRAITS_MEMBER(position)
- IPC_STRUCT_TRAITS_MEMBER(length)
-IPC_STRUCT_TRAITS_END()
+#define IPC_MESSAGE_START SpellCheckMsgStart
// Messages sent from the browser to the renderer.
@@ -33,7 +25,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 +56,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.

Powered by Google App Engine
This is Rietveld 408576698