diff options
Diffstat (limited to 'extensions/browser/guest_view')
3 files changed, 9 insertions, 0 deletions
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.cc b/extensions/browser/guest_view/web_view/web_view_guest.cc index 70dca3f..bab38da 100644 --- a/extensions/browser/guest_view/web_view/web_view_guest.cc +++ b/extensions/browser/guest_view/web_view/web_view_guest.cc @@ -567,6 +567,11 @@ void WebViewGuest::LoadAbort(bool is_top_level, new GuestViewEvent(webview::kEventLoadAbort, args.Pass())); } +void WebViewGuest::SetContextMenuPosition(const gfx::Point& position) { + if (web_view_guest_delegate_) + web_view_guest_delegate_->SetContextMenuPosition(position); +} + void WebViewGuest::CreateNewGuestWebViewWindow( const content::OpenURLParams& params) { GuestViewManager* guest_manager = diff --git a/extensions/browser/guest_view/web_view/web_view_guest.h b/extensions/browser/guest_view/web_view/web_view_guest.h index 9605ad2..9144c68 100644 --- a/extensions/browser/guest_view/web_view/web_view_guest.h +++ b/extensions/browser/guest_view/web_view/web_view_guest.h @@ -354,6 +354,8 @@ class WebViewGuest : public guest_view::GuestView<WebViewGuest>, void ApplyAttributes(const base::DictionaryValue& params); + void SetContextMenuPosition(const gfx::Point& position) override; + // Identifies the set of rules registries belonging to this guest. int rules_registry_id_; diff --git a/extensions/browser/guest_view/web_view/web_view_guest_delegate.h b/extensions/browser/guest_view/web_view/web_view_guest_delegate.h index 84a06f5..afee259 100644 --- a/extensions/browser/guest_view/web_view/web_view_guest_delegate.h +++ b/extensions/browser/guest_view/web_view/web_view_guest_delegate.h @@ -49,6 +49,8 @@ class WebViewGuestDelegate { // Returns true if the WebViewGuest should handle find requests for its // embedder. virtual bool ShouldHandleFindRequestsForEmbedder() const = 0; + + virtual void SetContextMenuPosition(const gfx::Point& position) = 0; }; } // namespace extensions |