OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 #if defined(OS_MACOSX) | 138 #if defined(OS_MACOSX) |
139 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, | 139 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, |
140 bool modal); | 140 bool modal); |
141 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, | 141 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, |
142 bool modal); | 142 bool modal); |
143 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); | 143 void OnPluginHideWindow(uint32 window_id, gfx::Rect window_rect); |
144 void OnPluginSetCursorVisibility(bool visible); | 144 void OnPluginSetCursorVisibility(bool visible); |
145 #endif | 145 #endif |
146 | 146 |
147 virtual bool CanShutdown() { return sent_requests_.empty(); } | 147 virtual bool CanShutdown(); |
148 | 148 |
149 void CancelRequests(); | 149 void CancelRequests(); |
150 | 150 |
151 // These are channel requests that we are waiting to send to the | 151 // These are channel requests that we are waiting to send to the |
152 // plugin process once the channel is opened. | 152 // plugin process once the channel is opened. |
153 std::vector<Client*> pending_requests_; | 153 std::vector<Client*> pending_requests_; |
154 | 154 |
155 // These are the channel requests that we have already sent to | 155 // These are the channel requests that we have already sent to |
156 // the plugin process, but haven't heard back about yet. | 156 // the plugin process, but haven't heard back about yet. |
157 std::queue<Client*> sent_requests_; | 157 std::queue<Client*> sent_requests_; |
(...skipping 17 matching lines...) Expand all Loading... |
175 // Tracks modal windows currently visible. | 175 // Tracks modal windows currently visible. |
176 std::set<uint32> plugin_modal_windows_set_; | 176 std::set<uint32> plugin_modal_windows_set_; |
177 // Tracks the current visibility of the cursor. | 177 // Tracks the current visibility of the cursor. |
178 bool plugin_cursor_visible_; | 178 bool plugin_cursor_visible_; |
179 #endif | 179 #endif |
180 | 180 |
181 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); | 181 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); |
182 }; | 182 }; |
183 | 183 |
184 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ | 184 #endif // CHROME_BROWSER_PLUGIN_PROCESS_HOST_H_ |
OLD | NEW |