1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/public/browser/browser_plugin_guest_delegate.h"
7 #include "base/callback.h"
11 WebContents* BrowserPluginGuestDelegate::GetOpener() const {
15 bool BrowserPluginGuestDelegate::HandleKeyboardEvent(
16 const NativeWebKeyboardEvent& event) {
20 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() {
24 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const {
28 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) {
32 void BrowserPluginGuestDelegate::RequestMediaAccessPermission(
33 const MediaStreamRequest& request,
34 const MediaResponseCallback& callback) {
35 callback.Run(MediaStreamDevices(),
36 MEDIA_DEVICE_INVALID_STATE,
37 scoped_ptr<MediaStreamUI>());
40 void BrowserPluginGuestDelegate::CanDownload(
41 const std::string& request_method,
43 const base::Callback<void(bool)>& callback) {
47 JavaScriptDialogManager*
48 BrowserPluginGuestDelegate::GetJavaScriptDialogManager() {
52 bool BrowserPluginGuestDelegate::HandleContextMenu(
53 const ContextMenuParams& params) {
57 } // namespace content