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" | |
8 | |
9 namespace content { | 7 namespace content { |
10 | 8 |
11 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { | 9 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { |
12 return false; | 10 return false; |
13 } | 11 } |
14 | 12 |
15 void BrowserPluginGuestDelegate::RequestMediaAccessPermission( | |
16 const MediaStreamRequest& request, | |
17 const MediaResponseCallback& callback) { | |
18 callback.Run(MediaStreamDevices(), | |
19 MEDIA_DEVICE_INVALID_STATE, | |
20 scoped_ptr<MediaStreamUI>()); | |
21 } | |
22 | |
23 void BrowserPluginGuestDelegate::CanDownload( | |
24 const std::string& request_method, | |
25 const GURL& url, | |
26 const base::Callback<void(bool)>& callback) { | |
27 callback.Run(true); | |
28 } | |
29 | |
30 JavaScriptDialogManager* | |
31 BrowserPluginGuestDelegate::GetJavaScriptDialogManager() { | |
32 return NULL; | |
33 } | |
34 | |
35 ColorChooser* BrowserPluginGuestDelegate::OpenColorChooser( | |
36 WebContents* web_contents, | |
37 SkColor color, | |
38 const std::vector<ColorSuggestion>& suggestions) { | |
39 return NULL; | |
40 } | |
41 | |
42 bool BrowserPluginGuestDelegate::HandleContextMenu( | |
43 const ContextMenuParams& params) { | |
44 return false; | |
45 } | |
46 | |
47 WebContents* BrowserPluginGuestDelegate::OpenURLFromTab( | |
48 WebContents* source, | |
49 const OpenURLParams& params) { | |
50 return NULL; | |
51 } | |
52 | |
53 bool BrowserPluginGuestDelegate::PreHandleGestureEvent( | |
54 content::WebContents* source, | |
55 const blink::WebGestureEvent& event) { | |
56 return false; | |
57 } | |
58 | |
59 } // namespace content | 13 } // namespace content |
OLD | NEW |