Chromium Code Reviews| Index: content/browser/renderer_host/render_view_host_impl.cc |
| =================================================================== |
| --- content/browser/renderer_host/render_view_host_impl.cc (revision 237093) |
| +++ content/browser/renderer_host/render_view_host_impl.cc (working copy) |
| @@ -84,6 +84,8 @@ |
| #include "content/browser/renderer_host/popup_menu_helper_mac.h" |
| #elif defined(OS_ANDROID) |
| #include "content/browser/media/android/browser_media_player_manager.h" |
| +#elif defined(OS_WIN) |
| +#include "base/win/win_util.h" |
| #endif |
| using base::TimeDelta; |
| @@ -1262,6 +1264,7 @@ |
| IPC_MESSAGE_HANDLER(ViewHostMsg_DomOperationResponse, |
| OnDomOperationResponse) |
| IPC_MESSAGE_HANDLER(AccessibilityHostMsg_Events, OnAccessibilityEvents) |
| + IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeTouched, OnFocusedNodeTouched) |
| // Have the super handle all other messages. |
| IPC_MESSAGE_UNHANDLED( |
| handled = RenderWidgetHostImpl::OnMessageReceived(msg)) |
| @@ -2233,6 +2236,16 @@ |
| Details<DomOperationNotificationDetails>(&details)); |
| } |
| +void RenderViewHostImpl::OnFocusedNodeTouched(bool editable) { |
| +#if defined(OS_WIN) && defined(USE_AURA) |
| + if (editable) { |
| + base::win::DisplayVirtualKeyboard(); |
| + } else { |
| + base::win::DismissVirtualKeyboard(); |
| + } |
| +#endif // |
|
jam
2013/11/27 22:22:01
?
ananta
2013/11/27 22:57:14
Done.
|
| +} |
| + |
| #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| void RenderViewHostImpl::OnShowPopup( |
| const ViewHostMsg_ShowPopup_Params& params) { |