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/plugin/webplugin_proxy.h" | 5 #include "content/plugin/webplugin_proxy.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/memory/scoped_handle.h" | 11 #include "base/memory/scoped_handle.h" |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/common/npobject_proxy.h" | 14 #include "content/common_child/npobject_proxy.h" |
15 #include "content/common/npobject_util.h" | 15 #include "content/common_child/npobject_util.h" |
16 #include "content/common/plugin_messages.h" | 16 #include "content/common_child/plugin_messages.h" |
17 #include "content/plugin/plugin_channel.h" | 17 #include "content/plugin/plugin_channel.h" |
18 #include "content/plugin/plugin_thread.h" | 18 #include "content/plugin/plugin_thread.h" |
19 #include "content/public/common/content_client.h" | 19 #include "content/public/common/content_client.h" |
20 #include "content/public/common/url_constants.h" | 20 #include "content/public/common/url_constants.h" |
21 #include "skia/ext/platform_canvas.h" | 21 #include "skia/ext/platform_canvas.h" |
22 #include "skia/ext/platform_device.h" | 22 #include "skia/ext/platform_device.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
24 #include "ui/gfx/blit.h" | 24 #include "ui/gfx/blit.h" |
25 #include "ui/gfx/canvas.h" | 25 #include "ui/gfx/canvas.h" |
26 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 26 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
27 | 27 |
28 #if defined(OS_MACOSX) | 28 #if defined(OS_MACOSX) |
29 #include "base/mac/mac_util.h" | 29 #include "base/mac/mac_util.h" |
30 #include "base/mac/scoped_cftyperef.h" | 30 #include "base/mac/scoped_cftyperef.h" |
31 #include "content/plugin/webplugin_accelerated_surface_proxy_mac.h" | 31 #include "content/plugin/webplugin_accelerated_surface_proxy_mac.h" |
32 #endif | 32 #endif |
33 | 33 |
34 #if defined(USE_X11) | 34 #if defined(USE_X11) |
35 #include "ui/base/x/x11_util_internal.h" | 35 #include "ui/base/x/x11_util_internal.h" |
36 #endif | 36 #endif |
37 | 37 |
38 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
| 39 #include "content/common/plugin_process_messages.h" |
39 #include "content/public/common/sandbox_init.h" | 40 #include "content/public/common/sandbox_init.h" |
40 #endif | 41 #endif |
41 | 42 |
42 using WebKit::WebBindings; | 43 using WebKit::WebBindings; |
43 | 44 |
44 using webkit::npapi::WebPluginResourceClient; | 45 using webkit::npapi::WebPluginResourceClient; |
45 #if defined(OS_MACOSX) | 46 #if defined(OS_MACOSX) |
46 using webkit::npapi::WebPluginAcceleratedSurface; | 47 using webkit::npapi::WebPluginAcceleratedSurface; |
47 #endif | 48 #endif |
48 | 49 |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 int input_type; | 691 int input_type; |
691 gfx::Rect caret_rect; | 692 gfx::Rect caret_rect; |
692 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) | 693 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
693 return; | 694 return; |
694 | 695 |
695 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); | 696 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
696 } | 697 } |
697 #endif | 698 #endif |
698 | 699 |
699 } // namespace content | 700 } // namespace content |
OLD | NEW |