| Index: content/plugin/webplugin_proxy.cc
|
| diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc
|
| index 89c1915a5aec20946617b049315a9e7f7271fc71..8744d22c454b4d40f95ed314f4bd1eb662d2fcd2 100644
|
| --- a/content/plugin/webplugin_proxy.cc
|
| +++ b/content/plugin/webplugin_proxy.cc
|
| @@ -75,6 +75,19 @@
|
| bool WebPluginProxy::Send(IPC::Message* msg) {
|
| return channel_->Send(msg);
|
| }
|
| +
|
| +#if defined(OS_WIN)
|
| +void WebPluginProxy::SetWindowlessData(
|
| + HANDLE pump_messages_event, gfx::NativeViewId dummy_activation_window) {
|
| + HANDLE pump_messages_event_for_renderer = NULL;
|
| + BrokerDuplicateHandle(pump_messages_event, channel_->peer_pid(),
|
| + &pump_messages_event_for_renderer,
|
| + SYNCHRONIZE | EVENT_MODIFY_STATE, 0);
|
| + DCHECK(pump_messages_event_for_renderer);
|
| + Send(new PluginHostMsg_SetWindowlessData(
|
| + route_id_, pump_messages_event_for_renderer, dummy_activation_window));
|
| +}
|
| +#endif
|
|
|
| void WebPluginProxy::Invalidate() {
|
| gfx::Rect rect(0, 0,
|
| @@ -462,4 +475,17 @@
|
| return channel_->incognito();
|
| }
|
|
|
| +#if defined(OS_WIN) && !defined(USE_AURA)
|
| +void WebPluginProxy::UpdateIMEStatus() {
|
| + // Retrieve the IME status from a plugin and send it to a renderer process
|
| + // when the plugin has updated it.
|
| + int input_type;
|
| + gfx::Rect caret_rect;
|
| + if (!delegate_->GetIMEStatus(&input_type, &caret_rect))
|
| + return;
|
| +
|
| + Send(new PluginHostMsg_NotifyIMEStatus(route_id_, input_type, caret_rect));
|
| +}
|
| +#endif
|
| +
|
| } // namespace content
|
|
|