| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/renderer/pepper_plugin_delegate_impl.h" | 5 #include "chrome/renderer/pepper_plugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "app/surface/transport_dib.h" | 9 #include "app/surface/transport_dib.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/common/render_messages_params.h" | 24 #include "chrome/common/render_messages_params.h" |
| 25 #include "chrome/renderer/audio_message_filter.h" | 25 #include "chrome/renderer/audio_message_filter.h" |
| 26 #include "chrome/renderer/command_buffer_proxy.h" | 26 #include "chrome/renderer/command_buffer_proxy.h" |
| 27 #include "chrome/renderer/ggl/ggl.h" | 27 #include "chrome/renderer/ggl/ggl.h" |
| 28 #include "chrome/renderer/gpu_channel_host.h" | 28 #include "chrome/renderer/gpu_channel_host.h" |
| 29 #include "chrome/renderer/pepper_platform_context_3d_impl.h" | 29 #include "chrome/renderer/pepper_platform_context_3d_impl.h" |
| 30 #include "chrome/renderer/render_thread.h" | 30 #include "chrome/renderer/render_thread.h" |
| 31 #include "chrome/renderer/render_view.h" | 31 #include "chrome/renderer/render_view.h" |
| 32 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" | 32 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" |
| 33 #include "chrome/renderer/webplugin_delegate_proxy.h" | 33 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 34 #include "gfx/size.h" | |
| 35 #include "grit/locale_settings.h" | 34 #include "grit/locale_settings.h" |
| 36 #include "ipc/ipc_channel_handle.h" | 35 #include "ipc/ipc_channel_handle.h" |
| 37 #include "ppapi/c/dev/pp_video_dev.h" | 36 #include "ppapi/c/dev/pp_video_dev.h" |
| 38 #include "ppapi/c/pp_errors.h" | 37 #include "ppapi/c/pp_errors.h" |
| 39 #include "ppapi/c/private/ppb_flash.h" | 38 #include "ppapi/c/private/ppb_flash.h" |
| 40 #include "ppapi/proxy/host_dispatcher.h" | 39 #include "ppapi/proxy/host_dispatcher.h" |
| 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserComplet
ion.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserComplet
ion.h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
| 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 45 #include "ui/base/l10n/l10n_util.h" | 44 #include "ui/base/l10n/l10n_util.h" |
| 45 #include "ui/gfx/size.h" |
| 46 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 46 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
| 47 #include "webkit/glue/context_menu.h" | 47 #include "webkit/glue/context_menu.h" |
| 48 #include "webkit/plugins/npapi/webplugin.h" | 48 #include "webkit/plugins/npapi/webplugin.h" |
| 49 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" | 49 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" |
| 50 #include "webkit/plugins/ppapi/plugin_module.h" | 50 #include "webkit/plugins/ppapi/plugin_module.h" |
| 51 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 51 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 52 #include "webkit/plugins/ppapi/ppb_flash_impl.h" | 52 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
| 53 | 53 |
| 54 #if defined(OS_MACOSX) | 54 #if defined(OS_MACOSX) |
| 55 #include "chrome/renderer/render_thread.h" | 55 #include "chrome/renderer/render_thread.h" |
| (...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 | 953 |
| 954 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { | 954 void PepperPluginDelegateImpl::SetContentRestriction(int restrictions) { |
| 955 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( | 955 render_view_->Send(new ViewHostMsg_UpdateContentRestrictions( |
| 956 render_view_->routing_id(), restrictions)); | 956 render_view_->routing_id(), restrictions)); |
| 957 } | 957 } |
| 958 | 958 |
| 959 void PepperPluginDelegateImpl::HasUnsupportedFeature() { | 959 void PepperPluginDelegateImpl::HasUnsupportedFeature() { |
| 960 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( | 960 render_view_->Send(new ViewHostMsg_PDFHasUnsupportedFeature( |
| 961 render_view_->routing_id())); | 961 render_view_->routing_id())); |
| 962 } | 962 } |
| OLD | NEW |