OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/pepper_plugin_delegate_impl.h" | 5 #include "content/renderer/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1733 // input for a while. | 1733 // input for a while. |
1734 if (instance == last_mouse_event_target_) | 1734 if (instance == last_mouse_event_target_) |
1735 render_view_->didChangeCursor(cursor); | 1735 render_view_->didChangeCursor(cursor); |
1736 } | 1736 } |
1737 | 1737 |
1738 void PepperPluginDelegateImpl::DidReceiveMouseEvent( | 1738 void PepperPluginDelegateImpl::DidReceiveMouseEvent( |
1739 webkit::ppapi::PluginInstance* instance) { | 1739 webkit::ppapi::PluginInstance* instance) { |
1740 last_mouse_event_target_ = instance; | 1740 last_mouse_event_target_ = instance; |
1741 } | 1741 } |
1742 | 1742 |
| 1743 bool PepperPluginDelegateImpl::IsInFullscreenMode() { |
| 1744 return render_view_->IsInFullscreenMode(); |
| 1745 } |
| 1746 |
1743 int PepperPluginDelegateImpl::GetRoutingId() const { | 1747 int PepperPluginDelegateImpl::GetRoutingId() const { |
1744 return render_view_->routing_id(); | 1748 return render_view_->routing_id(); |
1745 } | 1749 } |
1746 | 1750 |
1747 void PepperPluginDelegateImpl::PublishInitialPolicy( | 1751 void PepperPluginDelegateImpl::PublishInitialPolicy( |
1748 scoped_refptr<webkit::ppapi::PluginInstance> instance, | 1752 scoped_refptr<webkit::ppapi::PluginInstance> instance, |
1749 const std::string& policy) { | 1753 const std::string& policy) { |
1750 instance->HandlePolicyUpdate(policy); | 1754 instance->HandlePolicyUpdate(policy); |
1751 } | 1755 } |
OLD | NEW |