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/bind.h" | |
8 #include "base/message_loop/message_loop.h" | |
9 | |
7 namespace content { | 10 namespace content { |
8 | 11 |
9 bool BrowserPluginGuestDelegate::HandleKeyboardEvent( | 12 bool BrowserPluginGuestDelegate::HandleKeyboardEvent( |
10 const NativeWebKeyboardEvent& event) { | 13 const NativeWebKeyboardEvent& event) { |
11 return false; | 14 return false; |
12 } | 15 } |
13 | 16 |
14 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { | 17 bool BrowserPluginGuestDelegate::IsDragAndDropEnabled() { |
15 return false; | 18 return false; |
16 } | 19 } |
17 | 20 |
18 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const { | 21 bool BrowserPluginGuestDelegate::IsOverridingUserAgent() const { |
19 return false; | 22 return false; |
20 } | 23 } |
21 | 24 |
22 bool BrowserPluginGuestDelegate::RequestPermission( | 25 int BrowserPluginGuestDelegate::RequestPermission( |
23 BrowserPluginPermissionType permission_type, | 26 BrowserPluginPermissionType permission_type, |
24 const base::DictionaryValue& request_info, | 27 const base::DictionaryValue& request_info, |
25 const PermissionResponseCallback& callback, | 28 const PermissionResponseCallback& callback, |
26 bool allowed_by_default) { | 29 bool allowed_by_default) { |
27 return false; | 30 base::MessageLoop::current()->PostTask( |
31 FROM_HERE, | |
32 base::Bind(&PermissionResponseCallback::Run, | |
33 base::Owned(new PermissionResponseCallback(callback)), | |
34 allowed_by_default, | |
35 std::string())); | |
jam
2014/04/14 18:11:55
why not just an empty method? in general we try to
Fady Samuel
2014/04/14 18:51:14
I've made it empty. This code is temporary. We wil
| |
36 return 0; | |
28 } | 37 } |
29 | 38 |
30 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) { | 39 GURL BrowserPluginGuestDelegate::ResolveURL(const std::string& src) { |
31 return GURL(src); | 40 return GURL(src); |
32 } | 41 } |
33 | 42 |
34 } // namespace content | 43 } // namespace content |
OLD | NEW |