| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #include "content/public/browser/browser_plugin_guest_delegate.h" | 5 #include "content/public/browser/browser_plugin_guest_delegate.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 WebContents* BrowserPluginGuestDelegate::GetOpener() const { | |
| 12 return NULL; | |
| 13 } | |
| 14 | |
| 15 bool BrowserPluginGuestDelegate::HandleKeyboardEvent( | 11 bool BrowserPluginGuestDelegate::HandleKeyboardEvent( |
| 16 const NativeWebKeyboardEvent& event) { | 12 const NativeWebKeyboardEvent& event) { |
| 17 return false; | 13 return false; |
| 18 } | 14 } |
| 19 | 15 |
| 20 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { | 16 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { |
| 21 return false; | 17 return false; |
| 22 } | 18 } |
| 23 | 19 |
| 24 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const { | 20 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const { |
| 25 return false; | 21 return false; |
| 26 } | 22 } |
| 27 | 23 |
| 28 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) { | |
| 29 return GURL(src); | |
| 30 } | |
| 31 | |
| 32 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( | 24 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( |
| 33 const MediaStreamRequest& request, | 25 const MediaStreamRequest& request, |
| 34 const MediaResponseCallback& callback) { | 26 const MediaResponseCallback& callback) { |
| 35 callback.Run(MediaStreamDevices(), | 27 callback.Run(MediaStreamDevices(), |
| 36 MEDIA_DEVICE_INVALID_STATE, | 28 MEDIA_DEVICE_INVALID_STATE, |
| 37 scoped_ptr<MediaStreamUI>()); | 29 scoped_ptr<MediaStreamUI>()); |
| 38 } | 30 } |
| 39 | 31 |
| 40 void BrowserPluginGuestDelegate::CanDownload( | 32 void BrowserPluginGuestDelegate::CanDownload( |
| 41 const std::string& request_method, | 33 const std::string& request_method, |
| 42 const GURL& url, | 34 const GURL& url, |
| 43 const base::Callback<void(bool)>& callback) { | 35 const base::Callback<void(bool)>& callback) { |
| 44 callback.Run(true); | 36 callback.Run(true); |
| 45 } | 37 } |
| 46 | 38 |
| 47 JavaScriptDialogManager* | 39 JavaScriptDialogManager* |
| 48 BrowserPluginGuestDelegate::GetJavaScriptDialogManager() { | 40 BrowserPluginGuestDelegate::GetJavaScriptDialogManager() { |
| 49 return NULL; | 41 return NULL; |
| 50 } | 42 } |
| 51 | 43 |
| 52 bool BrowserPluginGuestDelegate::HandleContextMenu( | 44 bool BrowserPluginGuestDelegate::HandleContextMenu( |
| 53 const ContextMenuParams& params) { | 45 const ContextMenuParams& params) { |
| 54 return false; | 46 return false; |
| 55 } | 47 } |
| 56 | 48 |
| 49 WebContents* BrowserPluginGuestDelegate::OpenURLFromTab( |
| 50 WebContents* source, |
| 51 const OpenURLParams& params) { |
| 52 return NULL; |
| 53 } |
| 54 |
| 57 } // namespace content | 55 } // namespace content |
| OLD | NEW |