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 <cstddef> | 8 #include <cstddef> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1418 render_view_->routing_id(), url, referrer)); | 1418 render_view_->routing_id(), url, referrer)); |
1419 } | 1419 } |
1420 | 1420 |
1421 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) { | 1421 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) { |
1422 double result = 0.0; | 1422 double result = 0.0; |
1423 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset( | 1423 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset( |
1424 t, &result)); | 1424 t, &result)); |
1425 return result; | 1425 return result; |
1426 } | 1426 } |
1427 | 1427 |
1428 std::string PepperPluginDelegateImpl::GetDeviceID() { | |
1429 std::string result; | |
1430 render_view_->Send(new PepperMsg_GetDeviceID(&result)); | |
1431 return result; | |
1432 } | |
1433 | |
1434 PP_FlashLSORestrictions PepperPluginDelegateImpl::GetLocalDataRestrictions( | 1428 PP_FlashLSORestrictions PepperPluginDelegateImpl::GetLocalDataRestrictions( |
1435 const GURL& document_url, | 1429 const GURL& document_url, |
1436 const GURL& plugin_url) { | 1430 const GURL& plugin_url) { |
1437 PP_FlashLSORestrictions restrictions = PP_FLASHLSORESTRICTIONS_NONE; | 1431 PP_FlashLSORestrictions restrictions = PP_FLASHLSORESTRICTIONS_NONE; |
1438 render_view_->Send( | 1432 render_view_->Send( |
1439 new PepperMsg_GetLocalDataRestrictions(document_url, plugin_url, | 1433 new PepperMsg_GetLocalDataRestrictions(document_url, plugin_url, |
1440 &restrictions)); | 1434 &restrictions)); |
1441 return restrictions; | 1435 return restrictions; |
1442 } | 1436 } |
1443 | 1437 |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 RenderWidgetFullscreenPepper* container = | 1798 RenderWidgetFullscreenPepper* container = |
1805 static_cast<RenderWidgetFullscreenPepper*>( | 1799 static_cast<RenderWidgetFullscreenPepper*>( |
1806 instance->fullscreen_container()); | 1800 instance->fullscreen_container()); |
1807 return container->mouse_lock_dispatcher(); | 1801 return container->mouse_lock_dispatcher(); |
1808 } else { | 1802 } else { |
1809 return render_view_->mouse_lock_dispatcher(); | 1803 return render_view_->mouse_lock_dispatcher(); |
1810 } | 1804 } |
1811 } | 1805 } |
1812 | 1806 |
1813 } // namespace content | 1807 } // namespace content |
OLD | NEW |