Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: chrome/browser/renderer_host/chrome_render_view_host_observer.cc

Issue 11734033: Display the on screen keyboard on Windows 8 when we receive a notification from the renderer that a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/chrome_render_view_host_observer.cc
===================================================================
--- chrome/browser/renderer_host/chrome_render_view_host_observer.cc (revision 174871)
+++ chrome/browser/renderer_host/chrome_render_view_host_observer.cc (working copy)
@@ -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::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
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698