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_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 21 matching lines...) Expand all Loading... | |
32 #include "content/public/common/content_switches.h" | 32 #include "content/public/common/content_switches.h" |
33 #include "content/public/renderer/content_renderer_client.h" | 33 #include "content/public/renderer/content_renderer_client.h" |
34 #include "content/renderer/gamepad_shared_memory_reader.h" | 34 #include "content/renderer/gamepad_shared_memory_reader.h" |
35 #include "content/renderer/gpu/command_buffer_proxy.h" | 35 #include "content/renderer/gpu/command_buffer_proxy.h" |
36 #include "content/renderer/gpu/gpu_channel_host.h" | 36 #include "content/renderer/gpu/gpu_channel_host.h" |
37 #include "content/renderer/gpu/renderer_gl_context.h" | 37 #include "content/renderer/gpu/renderer_gl_context.h" |
38 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" | 38 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" |
39 #include "content/renderer/media/audio_input_message_filter.h" | 39 #include "content/renderer/media/audio_input_message_filter.h" |
40 #include "content/renderer/media/audio_message_filter.h" | 40 #include "content/renderer/media/audio_message_filter.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/renderer_clipboard_client.h" | |
42 #include "content/renderer/media/video_capture_impl_manager.h" | 43 #include "content/renderer/media/video_capture_impl_manager.h" |
43 #include "content/renderer/p2p/p2p_transport_impl.h" | 44 #include "content/renderer/p2p/p2p_transport_impl.h" |
44 #include "content/renderer/pepper_platform_context_3d_impl.h" | 45 #include "content/renderer/pepper_platform_context_3d_impl.h" |
45 #include "content/renderer/render_thread_impl.h" | 46 #include "content/renderer/render_thread_impl.h" |
46 #include "content/renderer/render_view_impl.h" | 47 #include "content/renderer/render_view_impl.h" |
47 #include "content/renderer/render_widget_fullscreen_pepper.h" | 48 #include "content/renderer/render_widget_fullscreen_pepper.h" |
48 #include "content/renderer/webplugin_delegate_proxy.h" | 49 #include "content/renderer/webplugin_delegate_proxy.h" |
49 #include "ipc/ipc_channel_handle.h" | 50 #include "ipc/ipc_channel_handle.h" |
50 #include "media/audio/audio_manager_base.h" | 51 #include "media/audio/audio_manager_base.h" |
51 #include "media/video/capture/video_capture_proxy.h" | 52 #include "media/video/capture/video_capture_proxy.h" |
(...skipping 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2109 void PepperPluginDelegateImpl::UnSetAndDeleteLockTargetAdapter( | 2110 void PepperPluginDelegateImpl::UnSetAndDeleteLockTargetAdapter( |
2110 webkit::ppapi::PluginInstance* instance) { | 2111 webkit::ppapi::PluginInstance* instance) { |
2111 LockTargetMap::iterator it = mouse_lock_instances_.find(instance); | 2112 LockTargetMap::iterator it = mouse_lock_instances_.find(instance); |
2112 if (it != mouse_lock_instances_.end()) { | 2113 if (it != mouse_lock_instances_.end()) { |
2113 MouseLockDispatcher::LockTarget* target = it->second; | 2114 MouseLockDispatcher::LockTarget* target = it->second; |
2114 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); | 2115 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); |
2115 delete target; | 2116 delete target; |
2116 mouse_lock_instances_.erase(it); | 2117 mouse_lock_instances_.erase(it); |
2117 } | 2118 } |
2118 } | 2119 } |
2120 | |
2121 webkit_glue::ClipboardClient* | |
2122 PepperPluginDelegateImpl::CreateClipboardClient() const { | |
viettrungluu
2012/02/06 21:29:29
Style nit: Apparently, the style in this file is t
raymes
2012/02/07 00:02:25
Done.
| |
2123 return new RendererClipboardClient; | |
2124 } | |
OLD | NEW |