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

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

Issue 2695103003: Fix the position of context menu for BrowserPlugins inside OOPIF (Merge to M-57) (Closed)
Patch Set: Created 3 years, 10 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 const blink::WebFindOptions& options); 251 const blink::WebFindOptions& options);
252 bool HandleStopFindingForEmbedder(StopFindAction action); 252 bool HandleStopFindingForEmbedder(StopFindAction action);
253 253
254 void ResendEventToEmbedder(const blink::WebInputEvent& event); 254 void ResendEventToEmbedder(const blink::WebInputEvent& event);
255 255
256 // TODO(ekaramad): Remove this once https://crbug.com/642826 is resolved. 256 // TODO(ekaramad): Remove this once https://crbug.com/642826 is resolved.
257 bool can_use_cross_process_frames() const { 257 bool can_use_cross_process_frames() const {
258 return can_use_cross_process_frames_; 258 return can_use_cross_process_frames_;
259 } 259 }
260 260
261 gfx::Point GetCoordinatesInEmbedderWebContents(
262 const gfx::Point& relative_point);
263
261 protected: 264 protected:
262 265
263 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and 266 // BrowserPluginGuest is a WebContentsObserver of |web_contents| and
264 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest. 267 // |web_contents| has to stay valid for the lifetime of BrowserPluginGuest.
265 // Constructor protected for testing. 268 // Constructor protected for testing.
266 BrowserPluginGuest(bool has_render_view, 269 BrowserPluginGuest(bool has_render_view,
267 WebContentsImpl* web_contents, 270 WebContentsImpl* web_contents,
268 BrowserPluginGuestDelegate* delegate); 271 BrowserPluginGuestDelegate* delegate);
269 272
270 // Protected for testing. 273 // Protected for testing.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 // Weak pointer used to ask GeolocationPermissionContext about geolocation 468 // Weak pointer used to ask GeolocationPermissionContext about geolocation
466 // permission. 469 // permission.
467 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 470 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
468 471
469 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 472 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
470 }; 473 };
471 474
472 } // namespace content 475 } // namespace content
473 476
474 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 477 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW
« no previous file with comments | « chrome/test/data/page_with_embedded_pdf.html ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698