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 "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/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/memory/scoped_handle.h" | 10 #include "base/memory/scoped_handle.h" |
11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "content/common/content_client.h" | |
14 #include "content/common/npobject_proxy.h" | 13 #include "content/common/npobject_proxy.h" |
15 #include "content/common/npobject_util.h" | 14 #include "content/common/npobject_util.h" |
16 #include "content/common/plugin_messages.h" | 15 #include "content/common/plugin_messages.h" |
17 #include "content/plugin/plugin_channel.h" | 16 #include "content/plugin/plugin_channel.h" |
18 #include "content/plugin/plugin_thread.h" | 17 #include "content/plugin/plugin_thread.h" |
| 18 #include "content/public/common/content_client.h" |
19 #include "content/public/common/url_constants.h" | 19 #include "content/public/common/url_constants.h" |
20 #include "skia/ext/platform_canvas.h" | 20 #include "skia/ext/platform_canvas.h" |
21 #include "skia/ext/platform_device.h" | 21 #include "skia/ext/platform_device.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" |
23 #include "ui/gfx/blit.h" | 23 #include "ui/gfx/blit.h" |
24 #include "ui/gfx/canvas.h" | 24 #include "ui/gfx/canvas.h" |
25 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 25 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
26 | 26 |
27 #if defined(OS_MACOSX) | 27 #if defined(OS_MACOSX) |
28 #include "base/mac/mac_util.h" | 28 #include "base/mac/mac_util.h" |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 // Retrieve the IME status from a plug-in and send it to a renderer process | 756 // Retrieve the IME status from a plug-in and send it to a renderer process |
757 // when the plug-in has updated it. | 757 // when the plug-in has updated it. |
758 int input_type; | 758 int input_type; |
759 gfx::Rect caret_rect; | 759 gfx::Rect caret_rect; |
760 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) | 760 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
761 return; | 761 return; |
762 | 762 |
763 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); | 763 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
764 } | 764 } |
765 #endif | 765 #endif |
OLD | NEW |