OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/plugin/webplugin_proxy.h" | 5 #include "chrome/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/scoped_handle.h" | 10 #include "base/scoped_handle.h" |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 Send(new PluginHostMsg_InitiateHTTPRangeRequest( | 646 Send(new PluginHostMsg_InitiateHTTPRangeRequest( |
647 route_id_, url, range_info, range_request_id)); | 647 route_id_, url, range_info, range_request_id)); |
648 } | 648 } |
649 | 649 |
650 void WebPluginProxy::SetDeferResourceLoading(unsigned long resource_id, | 650 void WebPluginProxy::SetDeferResourceLoading(unsigned long resource_id, |
651 bool defer) { | 651 bool defer) { |
652 Send(new PluginHostMsg_DeferResourceLoading(route_id_, resource_id, defer)); | 652 Send(new PluginHostMsg_DeferResourceLoading(route_id_, resource_id, defer)); |
653 } | 653 } |
654 | 654 |
655 #if defined(OS_MACOSX) | 655 #if defined(OS_MACOSX) |
656 void WebPluginProxy::SetImeEnabled(bool enabled) { | 656 void WebPluginProxy::FocusChanged(bool focused) { |
657 IPC::Message* msg = new PluginHostMsg_SetImeEnabled(route_id_, enabled); | 657 IPC::Message* msg = new PluginHostMsg_FocusChanged(route_id_, focused); |
| 658 Send(msg); |
| 659 } |
| 660 |
| 661 void WebPluginProxy::StartIme() { |
| 662 IPC::Message* msg = new PluginHostMsg_StartIme(route_id_); |
658 // This message can be sent during event-handling, and needs to be delivered | 663 // This message can be sent during event-handling, and needs to be delivered |
659 // within that context. | 664 // within that context. |
660 msg->set_unblock(true); | 665 msg->set_unblock(true); |
661 Send(msg); | 666 Send(msg); |
662 } | 667 } |
663 | 668 |
664 void WebPluginProxy::BindFakePluginWindowHandle(bool opaque) { | 669 void WebPluginProxy::BindFakePluginWindowHandle(bool opaque) { |
665 Send(new PluginHostMsg_BindFakePluginWindowHandle(route_id_, opaque)); | 670 Send(new PluginHostMsg_BindFakePluginWindowHandle(route_id_, opaque)); |
666 } | 671 } |
667 | 672 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 } else { | 731 } else { |
727 index++; | 732 index++; |
728 } | 733 } |
729 } | 734 } |
730 } | 735 } |
731 | 736 |
732 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { | 737 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { |
733 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); | 738 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); |
734 } | 739 } |
735 | 740 |
OLD | NEW |