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

Side by Side Diff: content/common/browser_plugin/browser_plugin_messages.h

Issue 103403006: Implement Input Method related WebPlugin interface for browser plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add cancel/compositionrangechanged Created 7 years 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 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "base/process/process.h" 11 #include "base/process/process.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "cc/output/compositor_frame.h" 13 #include "cc/output/compositor_frame.h"
14 #include "cc/output/compositor_frame_ack.h" 14 #include "cc/output/compositor_frame_ack.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/common/content_param_traits.h" 16 #include "content/common/content_param_traits.h"
17 #include "content/common/edit_command.h" 17 #include "content/common/edit_command.h"
18 #include "content/public/common/browser_plugin_permission_type.h" 18 #include "content/public/common/browser_plugin_permission_type.h"
19 #include "content/public/common/common_param_traits.h" 19 #include "content/public/common/common_param_traits.h"
20 #include "content/public/common/drop_data.h" 20 #include "content/public/common/drop_data.h"
21 #include "ipc/ipc_channel_handle.h" 21 #include "ipc/ipc_channel_handle.h"
22 #include "ipc/ipc_message_macros.h" 22 #include "ipc/ipc_message_macros.h"
23 #include "ipc/ipc_message_utils.h" 23 #include "ipc/ipc_message_utils.h"
24 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
24 #include "third_party/WebKit/public/web/WebDragOperation.h" 25 #include "third_party/WebKit/public/web/WebDragOperation.h"
25 #include "third_party/WebKit/public/web/WebDragStatus.h" 26 #include "third_party/WebKit/public/web/WebDragStatus.h"
26 #include "ui/gfx/point.h" 27 #include "ui/gfx/point.h"
27 #include "ui/gfx/rect.h" 28 #include "ui/gfx/rect.h"
28 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
29 #include "url/gurl.h" 30 #include "url/gurl.h"
30 #include "webkit/common/cursors/webcursor.h" 31 #include "webkit/common/cursors/webcursor.h"
31 32
32 #undef IPC_MESSAGE_EXPORT 33 #undef IPC_MESSAGE_EXPORT
33 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 34 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // edit command. 148 // edit command.
148 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand, 149 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_ExecuteEditCommand,
149 int /* instance_id */, 150 int /* instance_id */,
150 std::string /* command */) 151 std::string /* command */)
151 152
152 // This message must be sent just before sending a key event. 153 // This message must be sent just before sending a key event.
153 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent, 154 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetEditCommandsForNextKeyEvent,
154 int /* instance_id */, 155 int /* instance_id */,
155 std::vector<content::EditCommand> /* edit_commands */) 156 std::vector<content::EditCommand> /* edit_commands */)
156 157
158 // This message is sent from BrowserPlugin to BrowserPluginGuest whenever IME
159 // composition state is updated.
160 IPC_MESSAGE_ROUTED5(
161 BrowserPluginHostMsg_ImeSetComposition,
162 int /* instance_id */,
163 std::string /* text */,
164 std::vector<blink::WebCompositionUnderline> /* underlines */,
165 int /* selectiont_start */,
166 int /* selection_end */)
167
168 // This message is sent from BrowserPlugin to BrowserPluginGuest to notify that
169 // confirming the current composition is requested.
170 IPC_MESSAGE_ROUTED3(
171 BrowserPluginHostMsg_ImeConfirmComposition,
172 int /* instance_id */,
173 std::string /* text */,
174 bool /* keep selection */)
175
157 // This message is sent to the browser process to enable or disable autosize 176 // This message is sent to the browser process to enable or disable autosize
158 // mode. 177 // mode.
159 IPC_MESSAGE_ROUTED3( 178 IPC_MESSAGE_ROUTED3(
160 BrowserPluginHostMsg_SetAutoSize, 179 BrowserPluginHostMsg_SetAutoSize,
161 int /* instance_id */, 180 int /* instance_id */,
162 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, 181 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */,
163 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) 182 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */)
164 183
165 // This message is sent to the browser process to indicate that a BrowserPlugin 184 // This message is sent to the browser process to indicate that a BrowserPlugin
166 // has taken ownership of the lifetime of the guest of the given |instance_id|. 185 // has taken ownership of the lifetime of the guest of the given |instance_id|.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 int /* instance_id */, 382 int /* instance_id */,
364 cc::CompositorFrame /* frame */, 383 cc::CompositorFrame /* frame */,
365 int /* route_id */, 384 int /* route_id */,
366 uint32 /* output_surface_id */, 385 uint32 /* output_surface_id */,
367 int /* renderer_host_id */) 386 int /* renderer_host_id */)
368 387
369 // Forwards a PointerLock Unlock request to the BrowserPlugin. 388 // Forwards a PointerLock Unlock request to the BrowserPlugin.
370 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, 389 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock,
371 int /* instance_id */, 390 int /* instance_id */,
372 bool /* enable */) 391 bool /* enable */)
373
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698