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 #ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 void RequestPluginChannel(Client* client); | 126 void RequestPluginChannel(Client* client); |
127 | 127 |
128 // Message handlers. | 128 // Message handlers. |
129 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); | 129 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); |
130 void OnChannelDestroyed(int renderer_id); | 130 void OnChannelDestroyed(int renderer_id); |
131 | 131 |
132 #if defined(OS_WIN) | 132 #if defined(OS_WIN) |
133 void OnPluginWindowDestroyed(HWND window, HWND parent); | 133 void OnPluginWindowDestroyed(HWND window, HWND parent); |
134 #endif | 134 #endif |
135 | 135 |
136 #if defined(USE_X11) | |
137 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output); | |
138 #endif | |
139 | |
140 #if defined(OS_MACOSX) | 136 #if defined(OS_MACOSX) |
141 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, | 137 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, |
142 bool modal); | 138 bool modal); |
143 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, | 139 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, |
144 bool modal); | 140 bool modal); |
145 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); | 141 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); |
146 void OnPluginSetCursorVisibility(bool visible); | 142 void OnPluginSetCursorVisibility(bool visible); |
147 #endif | 143 #endif |
148 | 144 |
149 virtual bool CanShutdown() OVERRIDE; | 145 virtual bool CanShutdown() OVERRIDE; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 : public BrowserChildProcessHostTypeIterator<PluginProcessHost> { | 198 : public BrowserChildProcessHostTypeIterator<PluginProcessHost> { |
203 public: | 199 public: |
204 PluginProcessHostIterator() | 200 PluginProcessHostIterator() |
205 : BrowserChildProcessHostTypeIterator<PluginProcessHost>( | 201 : BrowserChildProcessHostTypeIterator<PluginProcessHost>( |
206 PROCESS_TYPE_PLUGIN) {} | 202 PROCESS_TYPE_PLUGIN) {} |
207 }; | 203 }; |
208 | 204 |
209 } // namespace content | 205 } // namespace content |
210 | 206 |
211 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 207 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
OLD | NEW |