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

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

Issue 11606005: Browser Plugin: Simplify BrowserPluginGuestHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT 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/gpu/gpu_messages.h" 10 #include "content/common/gpu/gpu_messages.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 void BrowserPluginEmbedderHelper::OnNavigateGuest( 93 void BrowserPluginEmbedderHelper::OnNavigateGuest(
94 int instance_id, 94 int instance_id,
95 const std::string& src) { 95 const std::string& src) {
96 embedder_->NavigateGuest(render_view_host(), instance_id, src); 96 embedder_->NavigateGuest(render_view_host(), instance_id, src);
97 } 97 }
98 98
99 void BrowserPluginEmbedderHelper::OnUpdateRectACK( 99 void BrowserPluginEmbedderHelper::OnUpdateRectACK(
100 int instance_id, 100 int instance_id,
101 int message_id,
102 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, 101 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
103 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) { 102 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) {
104 embedder_->UpdateRectACK(instance_id, 103 embedder_->UpdateRectACK(instance_id,
105 message_id,
106 auto_size_params, 104 auto_size_params,
107 resize_guest_params); 105 resize_guest_params);
108 } 106 }
109 107
110 void BrowserPluginEmbedderHelper::OnSwapBuffersACK(int route_id, 108 void BrowserPluginEmbedderHelper::OnSwapBuffersACK(int route_id,
111 int gpu_host_id, 109 int gpu_host_id,
112 uint64 surface_handle, 110 uint64 surface_handle,
113 uint32 sync_point) { 111 uint32 sync_point) {
114 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 112 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
115 ack_params.surface_handle = surface_handle; 113 ack_params.surface_handle = surface_handle;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 162 }
165 163
166 void BrowserPluginEmbedderHelper::OnSetAutoSize( 164 void BrowserPluginEmbedderHelper::OnSetAutoSize(
167 int instance_id, 165 int instance_id,
168 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params, 166 const BrowserPluginHostMsg_AutoSize_Params& auto_size_params,
169 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) { 167 const BrowserPluginHostMsg_ResizeGuest_Params& resize_guest_params) {
170 embedder_->SetAutoSize(instance_id, auto_size_params, resize_guest_params); 168 embedder_->SetAutoSize(instance_id, auto_size_params, resize_guest_params);
171 } 169 }
172 170
173 } // namespace content 171 } // 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