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_delegate_stub.h" | 5 #include "content/plugin/webplugin_delegate_stub.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/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 client->DidFail(); | 238 client->DidFail(); |
239 } | 239 } |
240 | 240 |
241 void WebPluginDelegateStub::OnDidFinishLoadWithReason( | 241 void WebPluginDelegateStub::OnDidFinishLoadWithReason( |
242 const GURL& url, int reason, int notify_id) { | 242 const GURL& url, int reason, int notify_id) { |
243 delegate_->DidFinishLoadWithReason(url, reason, notify_id); | 243 delegate_->DidFinishLoadWithReason(url, reason, notify_id); |
244 } | 244 } |
245 | 245 |
246 void WebPluginDelegateStub::OnSetFocus(bool focused) { | 246 void WebPluginDelegateStub::OnSetFocus(bool focused) { |
247 delegate_->SetFocus(focused); | 247 delegate_->SetFocus(focused); |
| 248 #if defined(OS_WIN) && !defined(USE_AURA) |
| 249 if (focused) |
| 250 webplugin_->UpdateIMEStatus(); |
| 251 #endif |
248 } | 252 } |
249 | 253 |
250 void WebPluginDelegateStub::OnHandleInputEvent( | 254 void WebPluginDelegateStub::OnHandleInputEvent( |
251 const WebKit::WebInputEvent *event, | 255 const WebKit::WebInputEvent *event, |
252 bool* handled, | 256 bool* handled, |
253 WebCursor* cursor) { | 257 WebCursor* cursor) { |
254 WebCursorInfo cursor_info; | 258 WebCursorInfo cursor_info; |
255 *handled = delegate_->HandleInputEvent(*event, &cursor_info); | 259 *handled = delegate_->HandleInputEvent(*event, &cursor_info); |
256 cursor->InitFromCursorInfo(cursor_info); | 260 cursor->InitFromCursorInfo(cursor_info); |
257 } | 261 } |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 delegate_->CreateSeekableResourceClient(resource_id, range_request_id); | 401 delegate_->CreateSeekableResourceClient(resource_id, range_request_id); |
398 webplugin_->OnResourceCreated(resource_id, resource_client); | 402 webplugin_->OnResourceCreated(resource_id, resource_client); |
399 } | 403 } |
400 | 404 |
401 #if defined(OS_MACOSX) | 405 #if defined(OS_MACOSX) |
402 void WebPluginDelegateStub::OnSetFakeAcceleratedSurfaceWindowHandle( | 406 void WebPluginDelegateStub::OnSetFakeAcceleratedSurfaceWindowHandle( |
403 gfx::PluginWindowHandle window) { | 407 gfx::PluginWindowHandle window) { |
404 delegate_->set_windowed_handle(window); | 408 delegate_->set_windowed_handle(window); |
405 } | 409 } |
406 #endif | 410 #endif |
OLD | NEW |