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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.cc

Issue 11364133: Messages needed for webview compositor communication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Routed not control Created 8 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 #include "content/browser/browser_plugin/browser_plugin_embedder_helper.h" 5 #include "content/browser/browser_plugin/browser_plugin_embedder_helper.h"
6 6
7 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 7 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/common/browser_plugin_messages.h" 9 #include "content/common/browser_plugin_messages.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop) 49 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Stop, OnStop)
50 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload) 50 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Reload, OnReload)
51 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_TerminateGuest, OnTerminateGuest) 51 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_TerminateGuest, OnTerminateGuest)
52 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetVisibility, 52 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetVisibility,
53 OnSetGuestVisibility) 53 OnSetGuestVisibility)
54 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_DragStatusUpdate, 54 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_DragStatusUpdate,
55 OnDragStatusUpdate) 55 OnDragStatusUpdate)
56 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetAutoSize, OnSetAutoSize) 56 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetAutoSize, OnSetAutoSize)
57 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginAtPositionResponse, 57 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginAtPositionResponse,
58 OnPluginAtPositionResponse) 58 OnPluginAtPositionResponse)
59 IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_BuffersSwappedACK,
60 OnSwapBuffersACK)
59 IPC_MESSAGE_UNHANDLED(handled = false) 61 IPC_MESSAGE_UNHANDLED(handled = false)
60 IPC_END_MESSAGE_MAP() 62 IPC_END_MESSAGE_MAP()
61 return handled; 63 return handled;
62 } 64 }
63 65
64 void BrowserPluginEmbedderHelper::OnResizeGuest( 66 void BrowserPluginEmbedderHelper::OnResizeGuest(
65 int instance_id, 67 int instance_id,
66 const BrowserPluginHostMsg_ResizeGuest_Params& params) { 68 const BrowserPluginHostMsg_ResizeGuest_Params& params) {
67 embedder_->ResizeGuest(render_view_host(), instance_id, params); 69 embedder_->ResizeGuest(render_view_host(), instance_id, params);
68 } 70 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 int instance_id, 124 int instance_id,
123 int message_id, 125 int message_id,
124 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, 126 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
125 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) { 127 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) {
126 embedder_->UpdateRectACK(instance_id, 128 embedder_->UpdateRectACK(instance_id,
127 message_id, 129 message_id,
128 auto_size_params, 130 auto_size_params,
129 resize_guest_params); 131 resize_guest_params);
130 } 132 }
131 133
134 void BrowserPluginEmbedderHelper::OnSwapBuffersACK(int route_id,
135 int gpu_host_id,
136 uint32 sync_point) {
137 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
138 gpu_host_id,
139 true,
140 sync_point);
141 }
142
132 void BrowserPluginEmbedderHelper::OnSetFocus(int instance_id, bool focused) { 143 void BrowserPluginEmbedderHelper::OnSetFocus(int instance_id, bool focused) {
133 embedder_->SetFocus(instance_id, focused); 144 embedder_->SetFocus(instance_id, focused);
134 } 145 }
135 146
136 void BrowserPluginEmbedderHelper::OnPluginAtPositionResponse( 147 void BrowserPluginEmbedderHelper::OnPluginAtPositionResponse(
137 int instance_id, int request_id, const gfx::Point& location) { 148 int instance_id, int request_id, const gfx::Point& location) {
138 embedder_->PluginAtPositionResponse(instance_id, request_id, location); 149 embedder_->PluginAtPositionResponse(instance_id, request_id, location);
139 } 150 }
140 151
141 void BrowserPluginEmbedderHelper::OnPluginDestroyed(int instance_id) { 152 void BrowserPluginEmbedderHelper::OnPluginDestroyed(int instance_id) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 185 }
175 186
176 void BrowserPluginEmbedderHelper::OnSetAutoSize( 187 void BrowserPluginEmbedderHelper::OnSetAutoSize(
177 int instance_id, 188 int instance_id,
178 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, 189 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
179 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) { 190 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) {
180 embedder_->SetAutoSize(instance_id, auto_size_params, resize_guest_params); 191 embedder_->SetAutoSize(instance_id, auto_size_params, resize_guest_params);
181 } 192 }
182 193
183 } // namespace content 194 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder_helper.h ('k') | content/browser/browser_plugin/browser_plugin_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698