OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
10 #include "content/public/common/common_param_traits.h" | 10 #include "content/public/common/common_param_traits.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ClearSiteDataResult, | 54 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_ClearSiteDataResult, |
55 bool /* success */) | 55 bool /* success */) |
56 | 56 |
57 #if defined(OS_WIN) | 57 #if defined(OS_WIN) |
58 // Destroys the given window's parent on the UI thread. | 58 // Destroys the given window's parent on the UI thread. |
59 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginWindowDestroyed, | 59 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginWindowDestroyed, |
60 HWND /* window */, | 60 HWND /* window */, |
61 HWND /* parent */) | 61 HWND /* parent */) |
62 #endif | 62 #endif |
63 | 63 |
64 #if defined(USE_X11) | |
65 // On X11, the mapping between NativeViewId and X window ids | |
66 // is known only to the browser. This message lets the plugin process | |
67 // ask about a NativeViewId that was provided by the renderer. | |
68 // It will get 0 back if it's a bogus input. | |
69 IPC_SYNC_MESSAGE_CONTROL1_1(PluginProcessHostMsg_MapNativeViewId, | |
70 gfx::NativeViewId /* input: native view id */, | |
71 gfx::PluginWindowHandle /* output: X window id */) | |
72 #endif | |
73 | |
74 #if defined(OS_MACOSX) | 64 #if defined(OS_MACOSX) |
75 // On Mac OS X, we need the browser to keep track of plugin windows so | 65 // On Mac OS X, we need the browser to keep track of plugin windows so |
76 // that it can add and remove them from stacking groups, hide and show the | 66 // that it can add and remove them from stacking groups, hide and show the |
77 // menu bar, etc. We pass the window rect for convenience so that the | 67 // menu bar, etc. We pass the window rect for convenience so that the |
78 // browser can easily tell if the window is fullscreen. | 68 // browser can easily tell if the window is fullscreen. |
79 | 69 |
80 // Notifies the browser that the plugin has selected a window (i.e., brought | 70 // Notifies the browser that the plugin has selected a window (i.e., brought |
81 // it to the front and wants it to have keyboard focus). | 71 // it to the front and wants it to have keyboard focus). |
82 IPC_MESSAGE_CONTROL3(PluginProcessHostMsg_PluginSelectWindow, | 72 IPC_MESSAGE_CONTROL3(PluginProcessHostMsg_PluginSelectWindow, |
83 uint32 /* window ID */, | 73 uint32 /* window ID */, |
84 gfx::Rect /* window rect */, | 74 gfx::Rect /* window rect */, |
85 bool /* modal */) | 75 bool /* modal */) |
86 | 76 |
87 // Notifies the browser that the plugin has shown a window. | 77 // Notifies the browser that the plugin has shown a window. |
88 IPC_MESSAGE_CONTROL3(PluginProcessHostMsg_PluginShowWindow, | 78 IPC_MESSAGE_CONTROL3(PluginProcessHostMsg_PluginShowWindow, |
89 uint32 /* window ID */, | 79 uint32 /* window ID */, |
90 gfx::Rect /* window rect */, | 80 gfx::Rect /* window rect */, |
91 bool /* modal */) | 81 bool /* modal */) |
92 | 82 |
93 // Notifies the browser that the plugin has hidden a window. | 83 // Notifies the browser that the plugin has hidden a window. |
94 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginHideWindow, | 84 IPC_MESSAGE_CONTROL2(PluginProcessHostMsg_PluginHideWindow, |
95 uint32 /* window ID */, | 85 uint32 /* window ID */, |
96 gfx::Rect /* window rect */) | 86 gfx::Rect /* window rect */) |
97 | 87 |
98 // Notifies the browser that a plugin instance has requested a cursor | 88 // Notifies the browser that a plugin instance has requested a cursor |
99 // visibility change. | 89 // visibility change. |
100 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_PluginSetCursorVisibility, | 90 IPC_MESSAGE_CONTROL1(PluginProcessHostMsg_PluginSetCursorVisibility, |
101 bool /* cursor visibility */) | 91 bool /* cursor visibility */) |
102 #endif | 92 #endif |
OLD | NEW |