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

Side by Side 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: Updated to address feedback. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for spellcheck. 5 // IPC messages for spellcheck.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_platform_file.h" 9 #include "ipc/ipc_platform_file.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult .h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextCheckingResult .h"
11 11
12 #define IPC_MESSAGE_START SpellCheckMsgStart 12 #define IPC_MESSAGE_START SpellCheckMsgStart
13 13
14 IPC_ENUM_TRAITS(WebKit::WebTextCheckingResult::Error) 14 IPC_ENUM_TRAITS(WebKit::WebTextCheckingType)
darin (slow to review) 2012/02/13 17:42:37 serialization of webkit stuff should be in webkit_
15 15
16 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebTextCheckingResult) 16 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebTextCheckingResult)
17 IPC_STRUCT_TRAITS_MEMBER(error) 17 IPC_STRUCT_TRAITS_MEMBER(type)
18 IPC_STRUCT_TRAITS_MEMBER(position) 18 IPC_STRUCT_TRAITS_MEMBER(location)
19 IPC_STRUCT_TRAITS_MEMBER(length) 19 IPC_STRUCT_TRAITS_MEMBER(length)
20 IPC_STRUCT_TRAITS_MEMBER(replacement)
20 IPC_STRUCT_TRAITS_END() 21 IPC_STRUCT_TRAITS_END()
21 22
22 23
23 // Messages sent from the browser to the renderer. 24 // Messages sent from the browser to the renderer.
24 25
25 IPC_MESSAGE_ROUTED0(SpellCheckMsg_ToggleSpellCheck) 26 IPC_MESSAGE_ROUTED0(SpellCheckMsg_ToggleSpellCheck)
26 27
27 IPC_MESSAGE_ROUTED1(SpellCheckMsg_ToggleSpellPanel, 28 IPC_MESSAGE_ROUTED1(SpellCheckMsg_ToggleSpellPanel,
28 bool) 29 bool)
29 30
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, 122 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck,
122 int /* route_id for response */, 123 int /* route_id for response */,
123 int /* request identifier given by WebKit */, 124 int /* request identifier given by WebKit */,
124 int /* document tag */, 125 int /* document tag */,
125 string16 /* sentence */) 126 string16 /* sentence */)
126 127
127 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, 128 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck,
128 bool /* enabled */, 129 bool /* enabled */,
129 bool /* checked */) 130 bool /* checked */)
130 #endif // OS_MACOSX 131 #endif // OS_MACOSX
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698