| Index: content/browser/renderer_host/render_view_host_impl.cc
|
| ===================================================================
|
| --- content/browser/renderer_host/render_view_host_impl.cc (revision 238135)
|
| +++ content/browser/renderer_host/render_view_host_impl.cc (working copy)
|
| @@ -83,6 +83,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;
|
| @@ -1227,6 +1229,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))
|
| @@ -2198,6 +2201,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
|
| +}
|
| +
|
| #if defined(OS_MACOSX) || defined(OS_ANDROID)
|
| void RenderViewHostImpl::OnShowPopup(
|
| const ViewHostMsg_ShowPopup_Params& params) {
|
|
|