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

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

Issue 7032: Patch by Thatcher Ulrich <tulrich@google.com>.... (Closed) Base URL: svn://chrome-svn/chrome/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,
246 background_buffer);
245 } 247 }
246 248
247 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id, 249 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id,
248 void** npobject_ptr) { 250 void** npobject_ptr) {
249 NPObject* object = delegate_->GetPluginScriptableObject(); 251 NPObject* object = delegate_->GetPluginScriptableObject();
250 if (!object) { 252 if (!object) {
251 *route_id = MSG_ROUTING_NONE; 253 *route_id = MSG_ROUTING_NONE;
252 return; 254 return;
253 } 255 }
254 256
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 params.stream); 333 params.stream);
332 webplugin_->OnResourceCreated(params.resource_id, resource_client); 334 webplugin_->OnResourceCreated(params.resource_id, resource_client);
333 } 335 }
334 336
335 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url, 337 void WebPluginDelegateStub::OnURLRequestRouted(const std::string& url,
336 bool notify_needed, 338 bool notify_needed,
337 HANDLE notify_data) { 339 HANDLE notify_data) {
338 delegate_->URLRequestRouted(url, notify_needed, notify_data); 340 delegate_->URLRequestRouted(url, notify_needed, notify_data);
339 } 341 }
340 342
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