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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 } | 1357 } |
1358 | 1358 |
1359 void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) { | 1359 void PepperPluginDelegateImpl::SaveURLAs(const GURL& url) { |
1360 WebFrame* frame = render_view_->webview()->mainFrame(); | 1360 WebFrame* frame = render_view_->webview()->mainFrame(); |
1361 Referrer referrer(frame->document().url(), | 1361 Referrer referrer(frame->document().url(), |
1362 frame->document().referrerPolicy()); | 1362 frame->document().referrerPolicy()); |
1363 render_view_->Send(new ViewHostMsg_SaveURLAs( | 1363 render_view_->Send(new ViewHostMsg_SaveURLAs( |
1364 render_view_->routing_id(), url, referrer)); | 1364 render_view_->routing_id(), url, referrer)); |
1365 } | 1365 } |
1366 | 1366 |
1367 double PepperPluginDelegateImpl::GetLocalTimeZoneOffset(base::Time t) { | |
1368 double result = 0.0; | |
1369 render_view_->Send(new PepperMsg_GetLocalTimeZoneOffset( | |
1370 t, &result)); | |
1371 return result; | |
1372 } | |
1373 | |
1374 PP_FlashLSORestrictions PepperPluginDelegateImpl::GetLocalDataRestrictions( | 1367 PP_FlashLSORestrictions PepperPluginDelegateImpl::GetLocalDataRestrictions( |
1375 const GURL& document_url, | 1368 const GURL& document_url, |
1376 const GURL& plugin_url) { | 1369 const GURL& plugin_url) { |
1377 PP_FlashLSORestrictions restrictions = PP_FLASHLSORESTRICTIONS_NONE; | 1370 PP_FlashLSORestrictions restrictions = PP_FLASHLSORESTRICTIONS_NONE; |
1378 render_view_->Send( | 1371 render_view_->Send( |
1379 new PepperMsg_GetLocalDataRestrictions(document_url, plugin_url, | 1372 new PepperMsg_GetLocalDataRestrictions(document_url, plugin_url, |
1380 &restrictions)); | 1373 &restrictions)); |
1381 return restrictions; | 1374 return restrictions; |
1382 } | 1375 } |
1383 | 1376 |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 RenderWidgetFullscreenPepper* container = | 1740 RenderWidgetFullscreenPepper* container = |
1748 static_cast<RenderWidgetFullscreenPepper*>( | 1741 static_cast<RenderWidgetFullscreenPepper*>( |
1749 instance->fullscreen_container()); | 1742 instance->fullscreen_container()); |
1750 return container->mouse_lock_dispatcher(); | 1743 return container->mouse_lock_dispatcher(); |
1751 } else { | 1744 } else { |
1752 return render_view_->mouse_lock_dispatcher(); | 1745 return render_view_->mouse_lock_dispatcher(); |
1753 } | 1746 } |
1754 } | 1747 } |
1755 | 1748 |
1756 } // namespace content | 1749 } // namespace content |
OLD | NEW |