Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: content/public/browser/browser_plugin_guest_delegate.cc

Issue 295083002: BrowserPluginGuest is no longer a WebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_context_menu_easier_to_refactor
Patch Set: Fixed content_browsertests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/browser_plugin_guest_delegate.cc
diff --git a/content/public/browser/browser_plugin_guest_delegate.cc b/content/public/browser/browser_plugin_guest_delegate.cc
index 3196372ad90bdbfd906717997e952aee9b502327..866b3560eb6a1adb415f05cd48c73ccf2809f395 100644
--- a/content/public/browser/browser_plugin_guest_delegate.cc
+++ b/content/public/browser/browser_plugin_guest_delegate.cc
@@ -4,56 +4,10 @@
#include "content/public/browser/browser_plugin_guest_delegate.h"
-#include "base/callback.h"
-
namespace content {
bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() {
return false;
}
-void BrowserPluginGuestDelegate::RequestMediaAccessPermission(
- const MediaStreamRequest& request,
- const MediaResponseCallback& callback) {
- callback.Run(MediaStreamDevices(),
- MEDIA_DEVICE_INVALID_STATE,
- scoped_ptr<MediaStreamUI>());
-}
-
-void BrowserPluginGuestDelegate::CanDownload(
- const std::string& request_method,
- const GURL& url,
- const base::Callback<void(bool)>& callback) {
- callback.Run(true);
-}
-
-JavaScriptDialogManager*
-BrowserPluginGuestDelegate::GetJavaScriptDialogManager() {
- return NULL;
-}
-
-ColorChooser* BrowserPluginGuestDelegate::OpenColorChooser(
- WebContents* web_contents,
- SkColor color,
- const std::vector<ColorSuggestion>& suggestions) {
- return NULL;
-}
-
-bool BrowserPluginGuestDelegate::HandleContextMenu(
- const ContextMenuParams& params) {
- return false;
-}
-
-WebContents* BrowserPluginGuestDelegate::OpenURLFromTab(
- WebContents* source,
- const OpenURLParams& params) {
- return NULL;
-}
-
-bool BrowserPluginGuestDelegate::PreHandleGestureEvent(
- content::WebContents* source,
- const blink::WebGestureEvent& event) {
- return false;
-}
-
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698