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

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

Issue 12207144: Apply merge from @fsamuel. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 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 // 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"
11 #include "base/shared_memory.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "content/common/content_param_traits.h" 13 #include "content/common/content_param_traits.h"
13 #include "content/public/common/common_param_traits.h" 14 #include "content/public/common/common_param_traits.h"
14 #include "ipc/ipc_channel_handle.h" 15 #include "ipc/ipc_channel_handle.h"
15 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
16 #include "ipc/ipc_message_utils.h" 17 #include "ipc/ipc_message_utils.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
19 #include "ui/gfx/point.h" 20 #include "ui/gfx/point.h"
20 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
21 #include "ui/gfx/size.h" 22 #include "ui/gfx/size.h"
22 #include "webkit/glue/webcursor.h" 23 #include "webkit/glue/webcursor.h"
23 #include "webkit/glue/webdropdata.h" 24 #include "webkit/glue/webdropdata.h"
24 25
25 #undef IPC_MESSAGE_EXPORT 26 #undef IPC_MESSAGE_EXPORT
26 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 27 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
27 28
28 #define IPC_MESSAGE_START BrowserPluginMsgStart 29 #define IPC_MESSAGE_START BrowserPluginMsgStart
29 30
30 IPC_ENUM_TRAITS(WebKit::WebDragStatus) 31 IPC_ENUM_TRAITS(WebKit::WebDragStatus)
31 32
32 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params) 33 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params)
33 IPC_STRUCT_MEMBER(bool, enable) 34 IPC_STRUCT_MEMBER(bool, enable)
34 IPC_STRUCT_MEMBER(gfx::Size, max_size) 35 IPC_STRUCT_MEMBER(gfx::Size, max_size)
35 IPC_STRUCT_MEMBER(gfx::Size, min_size) 36 IPC_STRUCT_MEMBER(gfx::Size, min_size)
36 IPC_STRUCT_END() 37 IPC_STRUCT_END()
37 38
38 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) 39 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params)
39 // An identifier to the new buffer to use to transport damage to the embedder 40 // The sequence number used to uniquely identify the damage buffer for the
40 // renderer process. 41 // current container size.
41 IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_id) 42 IPC_STRUCT_MEMBER(uint32, damage_buffer_sequence_id)
42 #if defined(OS_MACOSX) 43 // The handle to use to map the damage buffer in the browser process.
43 // On OSX, a handle to the new buffer is used to map the transport dib since 44 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, damage_buffer_handle)
44 // we don't let browser manage the dib. 45 // The size of the damage buffer.
45 IPC_STRUCT_MEMBER(TransportDIB::Handle, damage_buffer_handle) 46 IPC_STRUCT_MEMBER(size_t, damage_buffer_size)
46 #endif
47 #if defined(OS_WIN)
48 // The size of the damage buffer because this information is not available
49 // on Windows.
50 IPC_STRUCT_MEMBER(int, damage_buffer_size)
51 #endif
52 // The new size of the guest view area. 47 // The new size of the guest view area.
53 IPC_STRUCT_MEMBER(gfx::Size, view_size) 48 IPC_STRUCT_MEMBER(gfx::Size, view_size)
54 // Indicates the scale factor of the embedder WebView. 49 // Indicates the scale factor of the embedder WebView.
55 IPC_STRUCT_MEMBER(float, scale_factor) 50 IPC_STRUCT_MEMBER(float, scale_factor)
56 IPC_STRUCT_END() 51 IPC_STRUCT_END()
57 52
58 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params) 53 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_CreateGuest_Params)
59 IPC_STRUCT_MEMBER(std::string, storage_partition_id) 54 IPC_STRUCT_MEMBER(std::string, storage_partition_id)
60 IPC_STRUCT_MEMBER(bool, persist_storage) 55 IPC_STRUCT_MEMBER(bool, persist_storage)
61 IPC_STRUCT_MEMBER(bool, focused) 56 IPC_STRUCT_MEMBER(bool, focused)
(...skipping 18 matching lines...) Expand all
80 // Chrome's process ID for the guest. 75 // Chrome's process ID for the guest.
81 IPC_STRUCT_MEMBER(int, process_id) 76 IPC_STRUCT_MEMBER(int, process_id)
82 // The index of the current navigation entry after this navigation was 77 // The index of the current navigation entry after this navigation was
83 // committed. 78 // committed.
84 IPC_STRUCT_MEMBER(int, current_entry_index) 79 IPC_STRUCT_MEMBER(int, current_entry_index)
85 // The number of navigation entries after this navigation was committed. 80 // The number of navigation entries after this navigation was committed.
86 IPC_STRUCT_MEMBER(int, entry_count) 81 IPC_STRUCT_MEMBER(int, entry_count)
87 IPC_STRUCT_END() 82 IPC_STRUCT_END()
88 83
89 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) 84 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params)
90 // The bitmap to be painted into the view at the locations specified by 85 // The sequence number of the damage buffer used by the browser process.
91 // update_rects. 86 IPC_STRUCT_MEMBER(uint32, damage_buffer_sequence_id)
92 #if defined(OS_MACOSX)
93 IPC_STRUCT_MEMBER(TransportDIB::Id, damage_buffer_identifier)
94 #else
95 IPC_STRUCT_MEMBER(TransportDIB::Handle, damage_buffer_identifier)
96 #endif
97 87
98 // The position and size of the bitmap. 88 // The position and size of the bitmap.
99 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect) 89 IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect)
100 90
101 // The scroll delta. Only one of the delta components can be non-zero, and if 91 // The scroll delta. Only one of the delta components can be non-zero, and if
102 // they are both zero, then it means there is no scrolling and the scroll_rect 92 // they are both zero, then it means there is no scrolling and the scroll_rect
103 // is ignored. 93 // is ignored.
104 IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_delta) 94 IPC_STRUCT_MEMBER(gfx::Vector2d, scroll_delta)
105 95
106 // The rectangular region to scroll. 96 // The rectangular region to scroll.
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 uint64 /* surface_handle */, 341 uint64 /* surface_handle */,
352 int /* route_id */, 342 int /* route_id */,
353 int /* gpu_host_id */) 343 int /* gpu_host_id */)
354 344
355 // HW accelerated surface was created in the guest, forward this 345 // HW accelerated surface was created in the guest, forward this
356 // information to the embedder to update rendering parameters 346 // information to the embedder to update rendering parameters
357 // in the compositor. 347 // in the compositor.
358 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AcceleratedSurfaceNew, 348 IPC_MESSAGE_ROUTED2(BrowserPluginMsg_AcceleratedSurfaceNew,
359 int /* instance_id */, 349 int /* instance_id */,
360 gfx::Size /* size */) 350 gfx::Size /* size */)
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/test_browser_plugin_guest.cc ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698