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

Side by Side Diff: chrome/common/plugin_messages_internal.h

Issue 558035: [GPU] Get GPU process running on the mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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/common/io_surface_support_mac.cc ('k') | chrome/common/render_messages_internal.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 "app/gfx/native_widget_types.h" 5 #include "app/gfx/native_widget_types.h"
6 #include "base/shared_memory.h" 6 #include "base/shared_memory.h"
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "webkit/glue/webcursor.h" 9 #include "webkit/glue/webcursor.h"
10 10
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 int /* range_request_id */) 284 int /* range_request_id */)
285 285
286 IPC_SYNC_MESSAGE_ROUTED0_1(PluginMsg_CreateCommandBuffer, 286 IPC_SYNC_MESSAGE_ROUTED0_1(PluginMsg_CreateCommandBuffer,
287 int /* route_id */) 287 int /* route_id */)
288 288
289 IPC_MESSAGE_CONTROL1(PluginMsg_SignalModalDialogEvent, 289 IPC_MESSAGE_CONTROL1(PluginMsg_SignalModalDialogEvent,
290 gfx::NativeViewId /* containing_window */) 290 gfx::NativeViewId /* containing_window */)
291 291
292 IPC_MESSAGE_CONTROL1(PluginMsg_ResetModalDialogEvent, 292 IPC_MESSAGE_CONTROL1(PluginMsg_ResetModalDialogEvent,
293 gfx::NativeViewId /* containing_window */) 293 gfx::NativeViewId /* containing_window */)
294
295 #if defined(OS_MACOSX)
296 // This message, used only on 10.6 and later, transmits the "fake"
297 // window handle allocated by the browser on behalf of the renderer
298 // to the GPU plugin.
299 IPC_MESSAGE_ROUTED1(PluginMsg_SetFakeGPUPluginWindowHandle,
300 gfx::PluginWindowHandle /* window */)
301 #endif
302
294 IPC_END_MESSAGES(Plugin) 303 IPC_END_MESSAGES(Plugin)
295 304
296 305
297 //----------------------------------------------------------------------------- 306 //-----------------------------------------------------------------------------
298 // PluginHost messages 307 // PluginHost messages
299 // These are messages sent from the plugin process to the renderer process. 308 // These are messages sent from the plugin process to the renderer process.
300 // They all map to the corresponding WebPlugin methods. 309 // They all map to the corresponding WebPlugin methods.
301 IPC_BEGIN_MESSAGES(PluginHost) 310 IPC_BEGIN_MESSAGES(PluginHost)
302 // Sends the plugin window information to the renderer. 311 // Sends the plugin window information to the renderer.
303 // The window parameter is a handle to the window if the plugin is a windowed 312 // The window parameter is a handle to the window if the plugin is a windowed
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 IPC_MESSAGE_ROUTED2(PluginHostMsg_DeferResourceLoading, 387 IPC_MESSAGE_ROUTED2(PluginHostMsg_DeferResourceLoading,
379 unsigned long /* resource_id */, 388 unsigned long /* resource_id */,
380 bool /* defer */) 389 bool /* defer */)
381 390
382 IPC_SYNC_MESSAGE_CONTROL1_0(PluginHostMsg_SetException, 391 IPC_SYNC_MESSAGE_CONTROL1_0(PluginHostMsg_SetException,
383 std::string /* message */) 392 std::string /* message */)
384 393
385 #if defined(OS_MACOSX) 394 #if defined(OS_MACOSX)
386 IPC_MESSAGE_ROUTED1(PluginHostMsg_UpdateGeometry_ACK, 395 IPC_MESSAGE_ROUTED1(PluginHostMsg_UpdateGeometry_ACK,
387 int /* ack_key */) 396 int /* ack_key */)
397
398 // This message, used only on 10.6 and later, is sent from the
399 // plug-in process to the renderer process to indicate that the GPU
400 // plugin allocated a new IOSurface object of the given width and
401 // height. This information is then forwarded on to the browser
402 // process.
403 //
404 // NOTE: the original intent was to pass a mach port as the
405 // IOSurface identifier but it looks like that will be a lot of
406 // work. For now we pass an ID from IOSurfaceGetID.
407 IPC_MESSAGE_ROUTED4(PluginHostMsg_GPUPluginSetIOSurface,
408 gfx::PluginWindowHandle /* window */,
409 int32 /* width */,
410 int32 /* height */,
411 uint64 /* identifier for IOSurface */)
412
413 // This message, currently used only on 10.6 and later, notifies the
414 // renderer process (and from there the browser process) that the
415 // GPU plugin swapped the buffers associated with the given
416 // "window", which should cause the browser to redraw the various
417 // GPU plugins' contents.
418 IPC_MESSAGE_ROUTED1(PluginHostMsg_GPUPluginBuffersSwapped,
419 gfx::PluginWindowHandle /* window */)
388 #endif 420 #endif
389 421
390 IPC_END_MESSAGES(PluginHost) 422 IPC_END_MESSAGES(PluginHost)
391 423
392 //----------------------------------------------------------------------------- 424 //-----------------------------------------------------------------------------
393 // NPObject messages 425 // NPObject messages
394 // These are messages used to marshall NPObjects. They are sent both from the 426 // These are messages used to marshall NPObjects. They are sent both from the
395 // plugin to the renderer and from the renderer to the plugin. 427 // plugin to the renderer and from the renderer to the plugin.
396 IPC_BEGIN_MESSAGES(NPObject) 428 IPC_BEGIN_MESSAGES(NPObject)
397 IPC_SYNC_MESSAGE_ROUTED0_0(NPObjectMsg_Release) 429 IPC_SYNC_MESSAGE_ROUTED0_0(NPObjectMsg_Release)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 NPVariant_Param /* result_param */, 468 NPVariant_Param /* result_param */,
437 bool /* result */) 469 bool /* result */)
438 470
439 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate, 471 IPC_SYNC_MESSAGE_ROUTED2_2(NPObjectMsg_Evaluate,
440 std::string /* script */, 472 std::string /* script */,
441 bool /* popups_allowed */, 473 bool /* popups_allowed */,
442 NPVariant_Param /* result_param */, 474 NPVariant_Param /* result_param */,
443 bool /* result */) 475 bool /* result */)
444 476
445 IPC_END_MESSAGES(NPObject) 477 IPC_END_MESSAGES(NPObject)
OLDNEW
« no previous file with comments | « chrome/common/io_surface_support_mac.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698