browser_plugin_guest_delegate.cc revision 0529e5d033099cbfc42635f6f6183833b09dff6e
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. 4 5#include "content/public/browser/browser_plugin_guest_delegate.h" 6 7#include "base/callback.h" 8 9namespace content { 10 11bool BrowserPluginGuestDelegate::HandleKeyboardEvent( 12 const NativeWebKeyboardEvent& event) { 13 return false; 14} 15 16bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { 17 return false; 18} 19 20bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const { 21 return false; 22} 23 24GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) { 25 return GURL(src); 26} 27 28void BrowserPluginGuestDelegate::RequestMediaAccessPermission( 29 const MediaStreamRequest& request, 30 const MediaResponseCallback& callback) { 31 callback.Run(MediaStreamDevices(), 32 MEDIA_DEVICE_INVALID_STATE, 33 scoped_ptr<MediaStreamUI>()); 34} 35 36void BrowserPluginGuestDelegate::CanDownload( 37 const std::string& request_method, 38 const GURL& url, 39 const base::Callback<void(bool)>& callback) { 40 callback.Run(true); 41} 42 43JavaScriptDialogManager* 44BrowserPluginGuestDelegate::GetJavaScriptDialogManager() { 45 return NULL; 46} 47 48} // namespace content 49