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

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

Issue 11360106: Browser Plugin: Implement AutoSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nits + added tests Created 8 years, 1 month 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/process.h" 10 #include "base/process.h"
(...skipping 13 matching lines...) Expand all
24 24
25 #undef IPC_MESSAGE_EXPORT 25 #undef IPC_MESSAGE_EXPORT
26 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 26 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
27 27
28 #define IPC_MESSAGE_START BrowserPluginMsgStart 28 #define IPC_MESSAGE_START BrowserPluginMsgStart
29 29
30 IPC_ENUM_TRAITS(WebKit::WebDragStatus) 30 IPC_ENUM_TRAITS(WebKit::WebDragStatus)
31 31
32 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params) 32 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params)
33 IPC_STRUCT_MEMBER(bool, enable) 33 IPC_STRUCT_MEMBER(bool, enable)
34 IPC_STRUCT_MEMBER(int, max_height) 34 IPC_STRUCT_MEMBER(gfx::Size, max_size)
35 IPC_STRUCT_MEMBER(int, max_width) 35 IPC_STRUCT_MEMBER(gfx::Size, min_size)
36 IPC_STRUCT_MEMBER(int, min_height)
37 IPC_STRUCT_MEMBER(int, min_width)
38 IPC_STRUCT_END() 36 IPC_STRUCT_END()
39 37
40 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params) 38 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params)
41 IPC_STRUCT_MEMBER(std::string, storage_partition_id) 39 IPC_STRUCT_MEMBER(std::string, storage_partition_id)
42 IPC_STRUCT_MEMBER(bool, persist_storage) 40 IPC_STRUCT_MEMBER(bool, persist_storage)
43 IPC_STRUCT_MEMBER(bool, focused) 41 IPC_STRUCT_MEMBER(bool, focused)
44 IPC_STRUCT_MEMBER(bool, visible) 42 IPC_STRUCT_MEMBER(bool, visible)
45 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size) 43 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size)
46 IPC_STRUCT_END() 44 IPC_STRUCT_END()
47 45
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 IPC_STRUCT_MEMBER(bool, is_resize_ack) 117 IPC_STRUCT_MEMBER(bool, is_resize_ack)
120 IPC_STRUCT_END() 118 IPC_STRUCT_END()
121 119
122 // Browser plugin messages 120 // Browser plugin messages
123 121
124 // ----------------------------------------------------------------------------- 122 // -----------------------------------------------------------------------------
125 // These messages are from the embedder to the browser process. 123 // These messages are from the embedder to the browser process.
126 124
127 // This message is sent to the browser process to enable or disable autosize 125 // This message is sent to the browser process to enable or disable autosize
128 // mode. 126 // mode.
129 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetAutoSize, 127 IPC_SYNC_MESSAGE_ROUTED3_0(
130 int /* instance_id */, 128 BrowserPluginHostMsg_SetAutoSize,
131 BrowserPluginHostMsg_AutoSize_Params) 129 int /* instance_id */,
130 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */,
131 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */)
132 132
133 133
134 // This message is sent to the browser process to create the browser plugin 134 // This message is sent to the browser process to create the browser plugin
135 // embedder and helper. It is sent once prior to sending the first 135 // embedder and helper. It is sent once prior to sending the first
136 // BrowserPluginHostMsg_NavigateGuest message. 136 // BrowserPluginHostMsg_NavigateGuest message.
137 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CreateGuest, 137 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CreateGuest,
138 int /* instance_id */, 138 int /* instance_id */,
139 BrowserPluginHostMsg_CreateGuest_Params /* params */) 139 BrowserPluginHostMsg_CreateGuest_Params /* params */)
140 140
141 // Tells the browser process to terminate the guest associated with the 141 // Tells the browser process to terminate the guest associated with the
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, 280 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents,
281 int /* instance_id */, 281 int /* instance_id */,
282 bool /* accept */) 282 bool /* accept */)
283 283
284 // The guest has damage it wants to convey to the embedder so that it can 284 // The guest has damage it wants to convey to the embedder so that it can
285 // update its backing store. 285 // update its backing store.
286 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect, 286 IPC_MESSAGE_CONTROL3(BrowserPluginMsg_UpdateRect,
287 int /* instance_id */, 287 int /* instance_id */,
288 int /* message_id */, 288 int /* message_id */,
289 BrowserPluginMsg_UpdateRect_Params) 289 BrowserPluginMsg_UpdateRect_Params)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698