OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/pepper_plugin_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1705 tcp_server_sockets_.Lookup(real_server_socket_id); | 1705 tcp_server_sockets_.Lookup(real_server_socket_id); |
1706 if (socket) { | 1706 if (socket) { |
1707 bool succeeded = accepted_socket_id != 0; | 1707 bool succeeded = accepted_socket_id != 0; |
1708 socket->OnAcceptCompleted(succeeded, | 1708 socket->OnAcceptCompleted(succeeded, |
1709 accepted_socket_id, | 1709 accepted_socket_id, |
1710 local_addr, | 1710 local_addr, |
1711 remote_addr); | 1711 remote_addr); |
1712 } | 1712 } |
1713 } | 1713 } |
1714 | 1714 |
1715 int PepperPluginDelegateImpl::GetRoutingId() const { | 1715 int PepperPluginDelegateImpl::GetRoutingID() const { |
1716 return render_view_->routing_id(); | 1716 return render_view_->routing_id(); |
1717 } | 1717 } |
1718 | 1718 |
1719 int PepperPluginDelegateImpl::OpenDevice(PP_DeviceType_Dev type, | 1719 int PepperPluginDelegateImpl::OpenDevice(PP_DeviceType_Dev type, |
1720 const std::string& device_id, | 1720 const std::string& device_id, |
1721 const OpenDeviceCallback& callback) { | 1721 const OpenDeviceCallback& callback) { |
1722 int request_id = | 1722 int request_id = |
1723 device_enumeration_event_handler_->RegisterOpenDeviceCallback(callback); | 1723 device_enumeration_event_handler_->RegisterOpenDeviceCallback(callback); |
1724 | 1724 |
1725 #if defined(ENABLE_WEBRTC) | 1725 #if defined(ENABLE_WEBRTC) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1796 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); | 1796 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); |
1797 delete target; | 1797 delete target; |
1798 mouse_lock_instances_.erase(it); | 1798 mouse_lock_instances_.erase(it); |
1799 } | 1799 } |
1800 } | 1800 } |
1801 | 1801 |
1802 webkit_glue::ClipboardClient* | 1802 webkit_glue::ClipboardClient* |
1803 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1803 PepperPluginDelegateImpl::CreateClipboardClient() const { |
1804 return new RendererClipboardClient; | 1804 return new RendererClipboardClient; |
1805 } | 1805 } |
OLD | NEW |