| Index: content/browser/browser_plugin/browser_plugin_guest.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| index d01bbd0acdc250463bc3fb19610ca7c8628ada8c..673823ca02e133ea980eeb129b11f839f5a7b111 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| @@ -331,12 +331,18 @@ BrowserPluginGuest::GetBrowserPluginGuestManager() const {
|
| }
|
|
|
| // screen.
|
| -gfx::Rect BrowserPluginGuest::ToGuestRect(const gfx::Rect& bounds) {
|
| +gfx::Rect BrowserPluginGuest::ToGuestRect(const gfx::Rect& bounds) const {
|
| gfx::Rect guest_rect(bounds);
|
| guest_rect.Offset(guest_window_rect_.OffsetFromOrigin());
|
| return guest_rect;
|
| }
|
|
|
| +gfx::RectF BrowserPluginGuest::ToGuestRect(const gfx::RectF& bounds) const {
|
| + gfx::RectF guest_rect(bounds);
|
| + guest_rect.Offset(guest_window_rect_.OffsetFromOrigin());
|
| + return guest_rect;
|
| +}
|
| +
|
| void BrowserPluginGuest::EmbedderVisibilityChanged(bool visible) {
|
| embedder_visible_ = visible;
|
| UpdateVisibility();
|
|
|