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 | |
251 void ResendEventToEmbedder(const blink::WebInputEvent& event); | 244 void ResendEventToEmbedder(const blink::WebInputEvent& event); |
252 | 245 |
253 // TODO(ekaramad): Remove this once https://crbug.com/642826 is resolved. | 246 // TODO(ekaramad): Remove this once https://crbug.com/642826 is resolved. |
254 bool can_use_cross_process_frames() const { | 247 bool can_use_cross_process_frames() const { |
255 return can_use_cross_process_frames_; | 248 return can_use_cross_process_frames_; |
256 } | 249 } |
257 | 250 |
258 gfx::Point GetCoordinatesInEmbedderWebContents( | 251 gfx::Point GetCoordinatesInEmbedderWebContents( |
259 const gfx::Point& relative_point); | 252 const gfx::Point& relative_point); |
260 | 253 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 456 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
464 // permission. | 457 // permission. |
465 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 458 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
466 | 459 |
467 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 460 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
468 }; | 461 }; |
469 | 462 |
470 } // namespace content | 463 } // namespace content |
471 | 464 |
472 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 465 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |