| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output); | 123 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output); |
| 124 #endif | 124 #endif |
| 125 | 125 |
| 126 #if defined(OS_MACOSX) | 126 #if defined(OS_MACOSX) |
| 127 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, | 127 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, |
| 128 bool modal); | 128 bool modal); |
| 129 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, | 129 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, |
| 130 bool modal); | 130 bool modal); |
| 131 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); | 131 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); |
| 132 void OnPluginDisposeWindow(uint32 window_id, gfx::Rect window_rect); | 132 void OnPluginDisposeWindow(uint32 window_id, gfx::Rect window_rect); |
| 133 void OnPluginReceivedFocus(int process_id, int instance_id); |
| 133 #endif | 134 #endif |
| 134 | 135 |
| 135 virtual bool CanShutdown() { return sent_requests_.empty(); } | 136 virtual bool CanShutdown() { return sent_requests_.empty(); } |
| 136 | 137 |
| 137 struct ChannelRequest { | 138 struct ChannelRequest { |
| 138 ChannelRequest(ResourceMessageFilter* renderer_message_filter, | 139 ChannelRequest(ResourceMessageFilter* renderer_message_filter, |
| 139 const std::string& m, IPC::Message* r) : | 140 const std::string& m, IPC::Message* r) : |
| 140 mime_type(m), reply_msg(r), | 141 mime_type(m), reply_msg(r), |
| 141 renderer_message_filter_(renderer_message_filter) { } | 142 renderer_message_filter_(renderer_message_filter) { } |
| 142 std::string mime_type; | 143 std::string mime_type; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 169 // Tracks full screen windows currently visible | 170 // Tracks full screen windows currently visible |
| 170 std::set<uint32> plugin_fullscreen_windows_set_; | 171 std::set<uint32> plugin_fullscreen_windows_set_; |
| 171 // Tracks modal windows currently visible | 172 // Tracks modal windows currently visible |
| 172 std::set<uint32> plugin_modal_windows_set_; | 173 std::set<uint32> plugin_modal_windows_set_; |
| 173 #endif | 174 #endif |
| 174 | 175 |
| 175 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); | 176 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 179 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
| OLD | NEW |