| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 void RespondToPermissionRequest(int request_id, | 234 void RespondToPermissionRequest(int request_id, |
| 235 bool should_allow, | 235 bool should_allow, |
| 236 const std::string& user_input); | 236 const std::string& user_input); |
| 237 | 237 |
| 238 void PointerLockPermissionResponse(bool allow); | 238 void PointerLockPermissionResponse(bool allow); |
| 239 | 239 |
| 240 // The next function is virtual for test purposes. | 240 // The next function is virtual for test purposes. |
| 241 virtual void SetChildFrameSurface(const cc::SurfaceInfo& surface_info, | 241 virtual void SetChildFrameSurface(const cc::SurfaceInfo& surface_info, |
| 242 const cc::SurfaceSequence& sequence); | 242 const cc::SurfaceSequence& sequence); |
| 243 | 243 |
| 244 // Find the given |search_text| in the page. Returns true if the find request |
| 245 // is handled by this browser plugin guest. |
| 246 bool HandleFindForEmbedder(int request_id, |
| 247 const base::string16& search_text, |
| 248 const blink::WebFindOptions& options); |
| 249 bool HandleStopFindingForEmbedder(StopFindAction action); |
| 250 |
| 244 void ResendEventToEmbedder(const blink::WebInputEvent& event); | 251 void ResendEventToEmbedder(const blink::WebInputEvent& event); |
| 245 | 252 |
| 246 // TODO(ekaramad): Remove this once https://crbug.com/642826 is resolved. | 253 // TODO(ekaramad): Remove this once https://crbug.com/642826 is resolved. |
| 247 bool can_use_cross_process_frames() const { | 254 bool can_use_cross_process_frames() const { |
| 248 return can_use_cross_process_frames_; | 255 return can_use_cross_process_frames_; |
| 249 } | 256 } |
| 250 | 257 |
| 251 gfx::Point GetCoordinatesInEmbedderWebContents( | 258 gfx::Point GetCoordinatesInEmbedderWebContents( |
| 252 const gfx::Point& relative_point); | 259 const gfx::Point& relative_point); |
| 253 | 260 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 463 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 457 // permission. | 464 // permission. |
| 458 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 465 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 459 | 466 |
| 460 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 467 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 461 }; | 468 }; |
| 462 | 469 |
| 463 } // namespace content | 470 } // namespace content |
| 464 | 471 |
| 465 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 472 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |