| 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 26 matching lines...) Expand all Loading... |
| 37 #include "content/renderer/browser_plugin/old/browser_plugin_registry.h" | 37 #include "content/renderer/browser_plugin/old/browser_plugin_registry.h" |
| 38 #include "content/renderer/gamepad_shared_memory_reader.h" | 38 #include "content/renderer/gamepad_shared_memory_reader.h" |
| 39 #include "content/renderer/media/audio_hardware.h" | 39 #include "content/renderer/media/audio_hardware.h" |
| 40 #include "content/renderer/media/media_stream_dispatcher.h" | 40 #include "content/renderer/media/media_stream_dispatcher.h" |
| 41 #include "content/renderer/media/pepper_platform_video_decoder_impl.h" | 41 #include "content/renderer/media/pepper_platform_video_decoder_impl.h" |
| 42 #include "content/renderer/p2p/p2p_transport_impl.h" | 42 #include "content/renderer/p2p/p2p_transport_impl.h" |
| 43 #include "content/renderer/p2p/socket_dispatcher.h" | 43 #include "content/renderer/p2p/socket_dispatcher.h" |
| 44 #include "content/renderer/pepper/pepper_broker_impl.h" | 44 #include "content/renderer/pepper/pepper_broker_impl.h" |
| 45 #include "content/renderer/pepper/pepper_device_enumeration_event_handler.h" | 45 #include "content/renderer/pepper/pepper_device_enumeration_event_handler.h" |
| 46 #include "content/renderer/pepper/pepper_hung_plugin_filter.h" | 46 #include "content/renderer/pepper/pepper_hung_plugin_filter.h" |
| 47 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" |
| 47 #include "content/renderer/pepper/pepper_platform_audio_input_impl.h" | 48 #include "content/renderer/pepper/pepper_platform_audio_input_impl.h" |
| 48 #include "content/renderer/pepper/pepper_platform_audio_output_impl.h" | 49 #include "content/renderer/pepper/pepper_platform_audio_output_impl.h" |
| 49 #include "content/renderer/pepper/pepper_platform_context_3d_impl.h" | 50 #include "content/renderer/pepper/pepper_platform_context_3d_impl.h" |
| 50 #include "content/renderer/pepper/pepper_platform_image_2d_impl.h" | 51 #include "content/renderer/pepper/pepper_platform_image_2d_impl.h" |
| 51 #include "content/renderer/pepper/pepper_platform_video_capture_impl.h" | 52 #include "content/renderer/pepper/pepper_platform_video_capture_impl.h" |
| 52 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" | 53 #include "content/renderer/pepper/pepper_proxy_channel_delegate_impl.h" |
| 53 #include "content/renderer/render_thread_impl.h" | 54 #include "content/renderer/render_thread_impl.h" |
| 54 #include "content/renderer/render_view_impl.h" | 55 #include "content/renderer/render_view_impl.h" |
| 55 #include "content/renderer/render_widget_fullscreen_pepper.h" | 56 #include "content/renderer/render_widget_fullscreen_pepper.h" |
| 56 #include "content/renderer/renderer_clipboard_client.h" | 57 #include "content/renderer/renderer_clipboard_client.h" |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 webkit::ppapi::PluginInstance* instance) { | 591 webkit::ppapi::PluginInstance* instance) { |
| 591 active_instances_.erase(instance); | 592 active_instances_.erase(instance); |
| 592 UnSetAndDeleteLockTargetAdapter(instance); | 593 UnSetAndDeleteLockTargetAdapter(instance); |
| 593 | 594 |
| 594 if (last_mouse_event_target_ == instance) | 595 if (last_mouse_event_target_ == instance) |
| 595 last_mouse_event_target_ = NULL; | 596 last_mouse_event_target_ = NULL; |
| 596 if (focused_plugin_ == instance) | 597 if (focused_plugin_ == instance) |
| 597 PluginFocusChanged(instance, false); | 598 PluginFocusChanged(instance, false); |
| 598 } | 599 } |
| 599 | 600 |
| 601 scoped_ptr< ::ppapi::thunk::ResourceCreationAPI> |
| 602 PepperPluginDelegateImpl::CreateResourceCreationAPI( |
| 603 webkit::ppapi::PluginInstance* instance) { |
| 604 return scoped_ptr< ::ppapi::thunk::ResourceCreationAPI>( |
| 605 new PepperInProcessResourceCreation(render_view_, instance)); |
| 606 } |
| 607 |
| 600 SkBitmap* PepperPluginDelegateImpl::GetSadPluginBitmap() { | 608 SkBitmap* PepperPluginDelegateImpl::GetSadPluginBitmap() { |
| 601 return GetContentClient()->renderer()->GetSadPluginBitmap(); | 609 return GetContentClient()->renderer()->GetSadPluginBitmap(); |
| 602 } | 610 } |
| 603 | 611 |
| 604 WebKit::WebPlugin* PepperPluginDelegateImpl::CreatePluginReplacement( | 612 WebKit::WebPlugin* PepperPluginDelegateImpl::CreatePluginReplacement( |
| 605 const FilePath& file_path) { | 613 const FilePath& file_path) { |
| 606 return GetContentClient()->renderer()->CreatePluginReplacement( | 614 return GetContentClient()->renderer()->CreatePluginReplacement( |
| 607 render_view_, file_path); | 615 render_view_, file_path); |
| 608 } | 616 } |
| 609 | 617 |
| (...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1705 else | 1713 else |
| 1706 return render_view_->mouse_lock_dispatcher(); | 1714 return render_view_->mouse_lock_dispatcher(); |
| 1707 } | 1715 } |
| 1708 | 1716 |
| 1709 webkit_glue::ClipboardClient* | 1717 webkit_glue::ClipboardClient* |
| 1710 PepperPluginDelegateImpl::CreateClipboardClient() const { | 1718 PepperPluginDelegateImpl::CreateClipboardClient() const { |
| 1711 return new RendererClipboardClient; | 1719 return new RendererClipboardClient; |
| 1712 } | 1720 } |
| 1713 | 1721 |
| 1714 } // namespace content | 1722 } // namespace content |
| OLD | NEW |