| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 void OnDragStatusUpdate(int instance_id, | 292 void OnDragStatusUpdate(int instance_id, |
| 293 blink::WebDragStatus drag_status, | 293 blink::WebDragStatus drag_status, |
| 294 const DropData& drop_data, | 294 const DropData& drop_data, |
| 295 blink::WebDragOperationsMask drag_mask, | 295 blink::WebDragOperationsMask drag_mask, |
| 296 const gfx::Point& location); | 296 const gfx::Point& location); |
| 297 // Instructs the guest to execute an edit command decoded in the embedder. | 297 // Instructs the guest to execute an edit command decoded in the embedder. |
| 298 void OnExecuteEditCommand(int instance_id, | 298 void OnExecuteEditCommand(int instance_id, |
| 299 const std::string& command); | 299 const std::string& command); |
| 300 | 300 |
| 301 void OnLockMouse(bool user_gesture, | 301 void OnLockMouse(bool user_gesture, |
| 302 bool last_unlocked_by_target, | |
| 303 bool privileged); | 302 bool privileged); |
| 304 void OnLockMouseAck(int instance_id, bool succeeded); | 303 void OnLockMouseAck(int instance_id, bool succeeded); |
| 305 // Resizes the guest's web contents. | 304 // Resizes the guest's web contents. |
| 306 void OnSetFocus(int instance_id, | 305 void OnSetFocus(int instance_id, |
| 307 bool focused, | 306 bool focused, |
| 308 blink::WebFocusType focus_type); | 307 blink::WebFocusType focus_type); |
| 309 // Sets the name of the guest so that other guests in the same partition can | 308 // Sets the name of the guest so that other guests in the same partition can |
| 310 // access it. | 309 // access it. |
| 311 void OnSetName(int instance_id, const std::string& name); | 310 void OnSetName(int instance_id, const std::string& name); |
| 312 // Updates the size state of the guest. | 311 // Updates the size state of the guest. |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 455 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 457 // permission. | 456 // permission. |
| 458 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 457 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 459 | 458 |
| 460 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 459 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 461 }; | 460 }; |
| 462 | 461 |
| 463 } // namespace content | 462 } // namespace content |
| 464 | 463 |
| 465 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 464 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |