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

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

Issue 417005: Add acknowledgement messages for PluginMsg_UpdateGeometry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/common/plugin_messages_internal.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/common/child_process_logging.h" 10 #include "chrome/common/child_process_logging.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 #else 287 #else
288 // TODO(port): plugin printing. 288 // TODO(port): plugin printing.
289 NOTIMPLEMENTED(); 289 NOTIMPLEMENTED();
290 #endif 290 #endif
291 } 291 }
292 292
293 void WebPluginDelegateStub::OnUpdateGeometry( 293 void WebPluginDelegateStub::OnUpdateGeometry(
294 const PluginMsg_UpdateGeometry_Param& param) { 294 const PluginMsg_UpdateGeometry_Param& param) {
295 webplugin_->UpdateGeometry( 295 webplugin_->UpdateGeometry(
296 param.window_rect, param.clip_rect, 296 param.window_rect, param.clip_rect,
297 param.windowless_buffer, param.background_buffer); 297 param.windowless_buffer, param.background_buffer
298 #if defined(OS_MACOSX)
299 ,
300 param.ack_key
301 #endif
302 );
298 } 303 }
299 304
300 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id, 305 void WebPluginDelegateStub::OnGetPluginScriptableObject(int* route_id,
301 intptr_t* npobject_ptr) { 306 intptr_t* npobject_ptr) {
302 NPObject* object = delegate_->GetPluginScriptableObject(); 307 NPObject* object = delegate_->GetPluginScriptableObject();
303 if (!object) { 308 if (!object) {
304 *route_id = MSG_ROUTING_NONE; 309 *route_id = MSG_ROUTING_NONE;
305 return; 310 return;
306 } 311 }
307 312
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 390
386 void WebPluginDelegateStub::OnHandleURLRequestReply( 391 void WebPluginDelegateStub::OnHandleURLRequestReply(
387 const PluginMsg_URLRequestReply_Params& params) { 392 const PluginMsg_URLRequestReply_Params& params) {
388 WebPluginResourceClient* resource_client = 393 WebPluginResourceClient* resource_client =
389 delegate_->CreateResourceClient(params.resource_id, params.url, 394 delegate_->CreateResourceClient(params.resource_id, params.url,
390 params.notify_needed, 395 params.notify_needed,
391 params.notify_data, 396 params.notify_data,
392 params.stream); 397 params.stream);
393 webplugin_->OnResourceCreated(params.resource_id, resource_client); 398 webplugin_->OnResourceCreated(params.resource_id, resource_client);
394 } 399 }
OLDNEW
« no previous file with comments | « chrome/common/plugin_messages_internal.h ('k') | chrome/plugin/webplugin_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698