Commit b4c90a52 authored by ananta@chromium.org's avatar ananta@chromium.org

Display the on screen keyboard on Windows 8 when we receive a notification...

Display the on screen keyboard on Windows 8 when we receive a notification from the renderer that an editable field
has been touched.

We also hide the on screen keyboard when a non editable field us touched.

BUG=166516
TBR=sky (TBR'ing sky. Will address any comments in a followup)
Review URL: https://codereview.chromium.org/11734033

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175171 0039d316-1c4b-4281-b951-d872f2087c98
parent 6c3e20bb
......@@ -21,6 +21,10 @@
#include "content/public/browser/site_instance.h"
#include "extensions/common/constants.h"
#if defined(OS_WIN)
#include "base/win/win_util.h"
#endif // OS_WIN
using content::ChildProcessSecurityPolicy;
using content::RenderViewHost;
using content::SiteInstance;
......@@ -154,9 +158,16 @@ void ChromeRenderViewHostObserver::RemoveRenderViewHostForExtensions(
void ChromeRenderViewHostObserver::OnFocusedNodeTouched(bool editable) {
if (editable) {
#if defined(OS_WIN)
base::win::DisplayVirtualKeyboard();
#endif
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_FOCUSED_NODE_TOUCHED,
content::Source<RenderViewHost>(render_view_host()),
content::Details<bool>(&editable));
} else {
#if defined(OS_WIN)
base::win::DismissVirtualKeyboard();
#endif
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment