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

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

Issue 446823002: Revert 287732 "<webview>: Move autosize from content to chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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/process.h" 10 #include "base/process/process.h"
(...skipping 19 matching lines...) Expand all
30 #include "url/gurl.h" 30 #include "url/gurl.h"
31 31
32 #undef IPC_MESSAGE_EXPORT 32 #undef IPC_MESSAGE_EXPORT
33 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 33 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
34 34
35 #define IPC_MESSAGE_START BrowserPluginMsgStart 35 #define IPC_MESSAGE_START BrowserPluginMsgStart
36 36
37 37
38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDragStatus, blink::WebDragStatusLast) 38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDragStatus, blink::WebDragStatusLast)
39 39
40 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params)
41 IPC_STRUCT_MEMBER(bool, enable)
42 IPC_STRUCT_MEMBER(gfx::Size, max_size)
43 IPC_STRUCT_MEMBER(gfx::Size, min_size)
44 IPC_STRUCT_END()
45
40 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) 46 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params)
41 // Indicates whether the parameters have been populated or not. 47 // Indicates whether the parameters have been populated or not.
42 IPC_STRUCT_MEMBER(bool, size_changed) 48 IPC_STRUCT_MEMBER(bool, size_changed)
43 // The new size of guest view. 49 // The new size of guest view.
44 IPC_STRUCT_MEMBER(gfx::Size, view_size) 50 IPC_STRUCT_MEMBER(gfx::Size, view_size)
45 // Indicates the scale factor of the embedder WebView. 51 // Indicates the scale factor of the embedder WebView.
46 IPC_STRUCT_MEMBER(float, scale_factor) 52 IPC_STRUCT_MEMBER(float, scale_factor)
47 // Indicates a request for a full repaint of the page. 53 // Indicates a request for a full repaint of the page.
48 // This is required for switching from compositing to the software 54 // This is required for switching from compositing to the software
49 // rendering path. 55 // rendering path.
50 IPC_STRUCT_MEMBER(bool, repaint) 56 IPC_STRUCT_MEMBER(bool, repaint)
51 IPC_STRUCT_END() 57 IPC_STRUCT_END()
52 58
53 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params) 59 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params)
54 IPC_STRUCT_MEMBER(bool, focused) 60 IPC_STRUCT_MEMBER(bool, focused)
55 IPC_STRUCT_MEMBER(bool, visible) 61 IPC_STRUCT_MEMBER(bool, visible)
56 IPC_STRUCT_MEMBER(bool, opaque) 62 IPC_STRUCT_MEMBER(bool, opaque)
63 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params)
57 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, 64 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params,
58 resize_guest_params) 65 resize_guest_params)
59 IPC_STRUCT_MEMBER(gfx::Point, origin) 66 IPC_STRUCT_MEMBER(gfx::Point, origin)
60 IPC_STRUCT_END() 67 IPC_STRUCT_END()
61 68
62 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) 69 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params)
63 // The size of the RenderView when this message was generated. This is 70 // The size of the RenderView when this message was generated. This is
64 // included so the host knows how large the view is from the perspective of 71 // included so the host knows how large the view is from the perspective of
65 // the renderer process. This is necessary in case a resize operation is in 72 // the renderer process. This is necessary in case a resize operation is in
66 // progress. If auto-resize is enabled, this should update the corresponding 73 // progress. If auto-resize is enabled, this should update the corresponding
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 std::string /* text */, 115 std::string /* text */,
109 bool /* keep selection */) 116 bool /* keep selection */)
110 117
111 // Deletes the current selection plus the specified number of characters before 118 // Deletes the current selection plus the specified number of characters before
112 // and after the selection or caret. 119 // and after the selection or caret.
113 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ExtendSelectionAndDelete, 120 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_ExtendSelectionAndDelete,
114 int /* instance_id */, 121 int /* instance_id */,
115 int /* before */, 122 int /* before */,
116 int /* after */) 123 int /* after */)
117 124
125 // This message is sent to the browser process to enable or disable autosize
126 // mode.
127 IPC_MESSAGE_ROUTED3(
128 BrowserPluginHostMsg_SetAutoSize,
129 int /* instance_id */,
130 BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */,
131 BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */)
132
118 // This message is sent to the browser process to indicate that a BrowserPlugin 133 // This message is sent to the browser process to indicate that a BrowserPlugin
119 // has taken ownership of the lifetime of the guest of the given |instance_id|. 134 // has taken ownership of the lifetime of the guest of the given |instance_id|.
120 // |params| is the state of the BrowserPlugin taking ownership of 135 // |params| is the state of the BrowserPlugin taking ownership of
121 // the guest. If a guest doesn't already exist with the given |instance_id|, 136 // the guest. If a guest doesn't already exist with the given |instance_id|,
122 // a new one will be created. 137 // a new one will be created.
123 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_Attach, 138 IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_Attach,
124 int /* instance_id */, 139 int /* instance_id */,
125 BrowserPluginHostMsg_Attach_Params /* params */, 140 BrowserPluginHostMsg_Attach_Params /* params */,
126 base::DictionaryValue /* extra_params */) 141 base::DictionaryValue /* extra_params */)
127 142
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // See comment about BrowserPluginMsg_BuffersSwapped and 276 // See comment about BrowserPluginMsg_BuffersSwapped and
262 // BrowserPluginMsg_CompositorFrameSwapped for how these related 277 // BrowserPluginMsg_CompositorFrameSwapped for how these related
263 // to the FrameHostMsg variants. 278 // to the FrameHostMsg variants.
264 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, 279 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK,
265 FrameHostMsg_BuffersSwappedACK_Params /* params */) 280 FrameHostMsg_BuffersSwappedACK_Params /* params */)
266 281
267 // Acknowledge that we presented an ubercomp frame. 282 // Acknowledge that we presented an ubercomp frame.
268 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, 283 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK,
269 int /* instance_id */, 284 int /* instance_id */,
270 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) 285 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698