Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/public/common/common_param_traits.h" | 9 #include "content/public/common/common_param_traits.h" |
| 10 #include "content/public/common/webkit_param_traits.h" | 10 #include "content/public/common/webkit_param_traits.h" |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 375 std::string /* message */) | 375 std::string /* message */) |
| 376 | 376 |
| 377 IPC_MESSAGE_CONTROL0(PluginHostMsg_PluginShuttingDown) | 377 IPC_MESSAGE_CONTROL0(PluginHostMsg_PluginShuttingDown) |
| 378 | 378 |
| 379 #if defined(OS_MACOSX) | 379 #if defined(OS_MACOSX) |
| 380 IPC_MESSAGE_ROUTED1(PluginHostMsg_FocusChanged, | 380 IPC_MESSAGE_ROUTED1(PluginHostMsg_FocusChanged, |
| 381 bool /* focused */) | 381 bool /* focused */) |
| 382 | 382 |
| 383 IPC_MESSAGE_ROUTED0(PluginHostMsg_StartIme) | 383 IPC_MESSAGE_ROUTED0(PluginHostMsg_StartIme) |
| 384 | 384 |
| 385 //---------------------------------------------------------------------- | |
| 386 // Legacy Core Animation plugin implementation rendering directly to screen. | |
| 387 | |
| 385 // This message, used in Mac OS X 10.5 and earlier, is sent from the plug-in | 388 // This message, used in Mac OS X 10.5 and earlier, is sent from the plug-in |
| 386 // process to the renderer process to indicate that the plug-in allocated a | 389 // process to the renderer process to indicate that the plug-in allocated a |
| 387 // new TransportDIB that holds the GPU's rendered image. This information is | 390 // new TransportDIB that holds the GPU's rendered image. This information is |
| 388 // then forwarded to the browser process via a similar message. | 391 // then forwarded to the browser process via a similar message. |
| 389 IPC_MESSAGE_ROUTED4(PluginHostMsg_AcceleratedSurfaceSetTransportDIB, | 392 IPC_MESSAGE_ROUTED4(PluginHostMsg_AcceleratedSurfaceSetTransportDIB, |
| 390 gfx::PluginWindowHandle /* window */, | 393 gfx::PluginWindowHandle /* window */, |
| 391 int32 /* width */, | 394 int32 /* width */, |
| 392 int32 /* height */, | 395 int32 /* height */, |
| 393 TransportDIB::Handle /* handle to the TransportDIB */) | 396 TransportDIB::Handle /* handle to the TransportDIB */) |
| 394 | 397 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 428 IPC_MESSAGE_ROUTED1(PluginHostMsg_FreeTransportDIB, | 431 IPC_MESSAGE_ROUTED1(PluginHostMsg_FreeTransportDIB, |
| 429 TransportDIB::Id /* DIB id */) | 432 TransportDIB::Id /* DIB id */) |
| 430 | 433 |
| 431 // This message notifies the renderer process (and from there the | 434 // This message notifies the renderer process (and from there the |
| 432 // browser process) that the plug-in swapped the buffers associated | 435 // browser process) that the plug-in swapped the buffers associated |
| 433 // with the given "window", which should cause the browser to redraw | 436 // with the given "window", which should cause the browser to redraw |
| 434 // the various plug-ins' contents. | 437 // the various plug-ins' contents. |
| 435 IPC_MESSAGE_ROUTED2(PluginHostMsg_AcceleratedSurfaceBuffersSwapped, | 438 IPC_MESSAGE_ROUTED2(PluginHostMsg_AcceleratedSurfaceBuffersSwapped, |
| 436 gfx::PluginWindowHandle /* window */, | 439 gfx::PluginWindowHandle /* window */, |
| 437 uint64 /* surface_id */) | 440 uint64 /* surface_id */) |
| 441 | |
| 442 //---------------------------------------------------------------------- | |
| 443 // New Core Animation plugin implementation rendering via compositor. | |
| 444 | |
| 445 // Notifies the renderer process that this plugin will be using the | |
| 446 // accelerated rendering path. |opaque| indicates whether the content | |
| 447 // should be treated as opaque. | |
| 448 IPC_MESSAGE_ROUTED1(PluginHostMsg_AcceleratedPluginEnabledRendering, | |
| 449 bool /* opaque */) | |
|
stuartmorgan
2011/11/28 10:09:04
Do we expect to need opaque in the future for some
Ken Russell (switch to Gerrit)
2011/11/28 23:40:15
I wasn't sure whether the opaque flag was needed.
| |
| 450 | |
| 451 // Notifies the renderer process that the plugin allocated a new | |
| 452 // IOSurface into which it is rendering. The renderer process forwards | |
| 453 // this IOSurface to the GPU process, causing it to be bound to a | |
| 454 // texture from which the compositor can render. Any previous | |
| 455 // IOSurface allocated by this plugin must be implicitly released by | |
| 456 // the receipt of this message. | |
| 457 IPC_MESSAGE_ROUTED3(PluginHostMsg_AcceleratedPluginAllocatedIOSurface, | |
| 458 int32 /* width */, | |
| 459 int32 /* height */, | |
| 460 uint32 /* surface_id */) | |
| 461 | |
| 462 // Notifies the renderer process that the plugin produced a new frame | |
| 463 // of content into its IOSurface, and therefore that the compositor | |
| 464 // needs to redraw. | |
| 465 IPC_MESSAGE_ROUTED0(PluginHostMsg_AcceleratedPluginSwappedIOSurface) | |
| 438 #endif | 466 #endif |
| 439 | 467 |
| 440 IPC_MESSAGE_CONTROL1(PluginHostMsg_ClearSiteDataResult, | 468 IPC_MESSAGE_CONTROL1(PluginHostMsg_ClearSiteDataResult, |
| 441 bool /* success */) | 469 bool /* success */) |
| 442 | 470 |
| 443 IPC_MESSAGE_ROUTED2(PluginHostMsg_URLRedirectResponse, | 471 IPC_MESSAGE_ROUTED2(PluginHostMsg_URLRedirectResponse, |
| 444 bool /* allow */, | 472 bool /* allow */, |
| 445 int /* resource_id */) | 473 int /* resource_id */) |
| 446 | 474 |
| 447 | 475 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 489 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, | 517 IPC_SYNC_MESSAGE_ROUTED1_2(NPObjectMsg_Construct, |
| 490 std::vector<NPVariant_Param> /* args */, | 518 std::vector<NPVariant_Param> /* args */, |
| 491 NPVariant_Param /* result_param */, | 519 NPVariant_Param /* result_param */, |
| 492 bool /* result */) | 520 bool /* result */) |
| 493 | 521 |
| 494 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, | 522 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, |
| 495 std::string /* script */, | 523 std::string /* script */, |
| 496 bool /* popups_allowed */, | 524 bool /* popups_allowed */, |
| 497 NPVariant_Param /* result_param */, | 525 NPVariant_Param /* result_param */, |
| 498 bool /* result */) | 526 bool /* result */) |
| OLD | NEW |