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

Side by Side Diff: chrome/plugin/webplugin_delegate_stub.cc

Issue 1612: Implement "iframe shim" behavior for windowed plugins.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 2 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
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.h ('k') | chrome/plugin/webplugin_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/plugin/webplugin_delegate_stub.h" 5 #include "chrome/plugin/webplugin_delegate_stub.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/gfx/platform_device_win.h" 9 #include "base/gfx/platform_device_win.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 CreateSharedBuffer(size, &shared_buf, &params->shared_memory); 230 CreateSharedBuffer(size, &shared_buf, &params->shared_memory);
231 231
232 // Retrieve a copy of the data. 232 // Retrieve a copy of the data.
233 bool success = emf.GetData(shared_buf.memory(), size); 233 bool success = emf.GetData(shared_buf.memory(), size);
234 DCHECK(success); 234 DCHECK(success);
235 } 235 }
236 236
237 void WebPluginDelegateStub::OnUpdateGeometry( 237 void WebPluginDelegateStub::OnUpdateGeometry(
238 const gfx::Rect& window_rect, 238 const gfx::Rect& window_rect,
239 const gfx::Rect& clip_rect, 239 const gfx::Rect& clip_rect,
240 const std::vector<gfx::Rect>& cutout_rects,
240 bool visible, 241 bool visible,
241 const SharedMemoryHandle& windowless_buffer, 242 const SharedMemoryHandle& windowless_buffer,
242 const SharedMemoryHandle& background_buffer) { 243 const SharedMemoryHandle& background_buffer) {
243 webplugin_->UpdateGeometry( 244 webplugin_->UpdateGeometry(
244 window_rect, clip_rect, visible, windowless_buffer, background_buffer); 245 window_rect, clip_rect, cutout_rects, visible, windowless_buffer, backgrou nd_buffer);
245 } 246 }
246 247
247 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id, 248 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id,
248 void** npobject_ptr) { 249 void** npobject_ptr) {
249 NPObject* object = delegate_->GetPluginScriptableObject(); 250 NPObject* object = delegate_->GetPluginScriptableObject();
250 if (!object) { 251 if (!object) {
251 *route_id = MSG_ROUTING_NONE; 252 *route_id = MSG_ROUTING_NONE;
252 return; 253 return;
253 } 254 }
254 255
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 params.stream); 332 params.stream);
332 webplugin_->OnResourceCreated(params.resource_id, resource_client); 333 webplugin_->OnResourceCreated(params.resource_id, resource_client);
333 } 334 }
334 335
335 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, 336 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url,
336 bool notify_needed, 337 bool notify_needed,
337 HANDLE notify_data) { 338 HANDLE notify_data) {
338 delegate_->URLRequestRouted(url, notify_needed, notify_data); 339 delegate_->URLRequestRouted(url, notify_needed, notify_data);
339 } 340 }
340 341
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.h ('k') | chrome/plugin/webplugin_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698