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

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: Elimianted ParamTrais<WebString>. 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 "content/public/common/webkit_param_traits.h"
8 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_platform_file.h" 10 #include "ipc/ipc_platform_file.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)
15
16 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebTextCheckingResult)
17 IPC_STRUCT_TRAITS_MEMBER(error)
18 IPC_STRUCT_TRAITS_MEMBER(position)
19 IPC_STRUCT_TRAITS_MEMBER(length)
20 IPC_STRUCT_TRAITS_END()
21
22
23 // Messages sent from the browser to the renderer. 14 // Messages sent from the browser to the renderer.
24 15
25 IPC_MESSAGE_ROUTED0(SpellCheckMsg_ToggleSpellCheck) 16 IPC_MESSAGE_ROUTED0(SpellCheckMsg_ToggleSpellCheck)
26 17
27 IPC_MESSAGE_ROUTED1(SpellCheckMsg_ToggleSpellPanel, 18 IPC_MESSAGE_ROUTED1(SpellCheckMsg_ToggleSpellPanel,
28 bool) 19 bool)
29 20
30 #if defined(OS_MACOSX) 21 #if defined(OS_MACOSX)
31 // Sends when NSSpellChecker finishes checking text received by a preceeding 22 // Sends when NSSpellChecker finishes checking text received by a preceeding
32 // SpellCheckHostMsg_RequestTextCheck message. 23 // SpellCheckHostMsg_RequestTextCheck message.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck, 112 IPC_MESSAGE_CONTROL4(SpellCheckHostMsg_RequestTextCheck,
122 int /* route_id for response */, 113 int /* route_id for response */,
123 int /* request identifier given by WebKit */, 114 int /* request identifier given by WebKit */,
124 int /* document tag */, 115 int /* document tag */,
125 string16 /* sentence */) 116 string16 /* sentence */)
126 117
127 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck, 118 IPC_MESSAGE_ROUTED2(SpellCheckHostMsg_ToggleSpellCheck,
128 bool /* enabled */, 119 bool /* enabled */,
129 bool /* checked */) 120 bool /* checked */)
130 #endif // OS_MACOSX 121 #endif // OS_MACOSX
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698