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 // A BrowserPluginGuest is the browser side of a browser <--> embedder | 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder |
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder | 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder |
7 // renderer side of browser <--> embedder renderer communication. | 7 // renderer side of browser <--> embedder renderer communication. |
8 // | 8 // |
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any | 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any |
10 // messages about the guest render process that the embedder might be interested | 10 // messages about the guest render process that the embedder might be interested |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 const gfx::Point& location); | 238 const gfx::Point& location); |
239 // Instructs the guest to execute an edit command decoded in the embedder. | 239 // Instructs the guest to execute an edit command decoded in the embedder. |
240 void OnExecuteEditCommand(int instance_id, | 240 void OnExecuteEditCommand(int instance_id, |
241 const std::string& command); | 241 const std::string& command); |
242 | 242 |
243 // Returns compositor resources reclaimed in the embedder to the guest. | 243 // Returns compositor resources reclaimed in the embedder to the guest. |
244 void OnReclaimCompositorResources( | 244 void OnReclaimCompositorResources( |
245 int instance_id, | 245 int instance_id, |
246 const FrameHostMsg_ReclaimCompositorResources_Params& params); | 246 const FrameHostMsg_ReclaimCompositorResources_Params& params); |
247 | 247 |
248 void OnHandleInputEvent(int instance_id, | |
249 const gfx::Rect& guest_window_rect, | |
250 const blink::WebInputEvent* event); | |
251 void OnLockMouse(bool user_gesture, | 248 void OnLockMouse(bool user_gesture, |
252 bool last_unlocked_by_target, | 249 bool last_unlocked_by_target, |
253 bool privileged); | 250 bool privileged); |
254 void OnLockMouseAck(int instance_id, bool succeeded); | 251 void OnLockMouseAck(int instance_id, bool succeeded); |
255 void OnPluginDestroyed(int instance_id); | 252 void OnPluginDestroyed(int instance_id); |
256 // Resizes the guest's web contents. | 253 // Resizes the guest's web contents. |
257 void OnResizeGuest( | 254 void OnResizeGuest( |
258 int instance_id, const BrowserPluginHostMsg_ResizeGuest_Params& params); | 255 int instance_id, const BrowserPluginHostMsg_ResizeGuest_Params& params); |
259 void OnSetFocus(int instance_id, bool focused); | 256 void OnSetFocus(int instance_id, bool focused); |
260 // Sets the name of the guest so that other guests in the same partition can | 257 // Sets the name of the guest so that other guests in the same partition can |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 375 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
379 // permission. | 376 // permission. |
380 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 377 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
381 | 378 |
382 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 379 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
383 }; | 380 }; |
384 | 381 |
385 } // namespace content | 382 } // namespace content |
386 | 383 |
387 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 384 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |