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 |
7 namespace content { | 9 namespace content { |
8 | 10 |
9 bool BrowserPluginGuestDelegate::HandleKeyboardEvent( | 11 bool BrowserPluginGuestDelegate::HandleKeyboardEvent( |
10 const NativeWebKeyboardEvent& event) { | 12 const NativeWebKeyboardEvent& event) { |
11 return false; | 13 return false; |
12 } | 14 } |
13 | 15 |
14 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { | 16 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { |
15 return false; | 17 return false; |
16 } | 18 } |
17 | 19 |
18 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const { | 20 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const { |
19 return false; | 21 return false; |
20 } | 22 } |
21 | 23 |
22 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) { | 24 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) { |
23 return GURL(src); | 25 return GURL(src); |
24 } | 26 } |
25 | 27 |
| 28 void 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 |
26 } // namespace content | 36 } // namespace content |
OLD | NEW |