| 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" |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 resource_clients_.erase(index++); | 651 resource_clients_.erase(index++); |
| 652 } else { | 652 } else { |
| 653 index++; | 653 index++; |
| 654 } | 654 } |
| 655 } | 655 } |
| 656 } | 656 } |
| 657 | 657 |
| 658 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { | 658 void WebPluginProxy::URLRedirectResponse(bool allow, int resource_id) { |
| 659 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); | 659 Send(new PluginHostMsg_URLRedirectResponse(route_id_, allow, resource_id)); |
| 660 } | 660 } |
| 661 |
| 662 #if defined(OS_WIN) |
| 663 void WebPluginProxy::UpdateIMEStatus() { |
| 664 // Retrieve the IME status from a plug-in and send it to a renderer process |
| 665 // when the plug-in has updated it. |
| 666 int input_type; |
| 667 gfx::Rect caret_rect; |
| 668 if (!delegate_->GetIMEStatus(&input_type, &caret_rect)) |
| 669 return; |
| 670 |
| 671 Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect)); |
| 672 } |
| 673 #endif |
| OLD | NEW |