Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 2700613003: Enable find-in-page across GuestViews. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698