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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 10959024: Ensure that the OSK does not show up at times when you click on editable fields with the mouse. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | « content/browser/accessibility/browser_accessibility_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_win.cc (revision 157261)
+++ content/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -1534,6 +1534,7 @@
TRACE_EVENT0("browser", "RenderWidgetHostViewWin::OnCaptureChanged");
if (render_widget_host_)
render_widget_host_->LostCapture();
+ pointer_down_context_ = false;
}
void RenderWidgetHostViewWin::OnCancelMode() {
@@ -1845,7 +1846,8 @@
}
}
- if (message == WM_LBUTTONDOWN && GetBrowserAccessibilityManager())
+ if (message == WM_LBUTTONDOWN && pointer_down_context_ &&
+ GetBrowserAccessibilityManager())
GetBrowserAccessibilityManager()->GotMouseDown();
if (message == WM_LBUTTONUP && ui::IsMouseEventFromTouch(message) &&
@@ -2211,6 +2213,9 @@
return 0;
}
+ if (total == 1 && (points[0].dwFlags & TOUCHEVENTF_DOWN))
+ pointer_down_context_ = true;
+
bool has_touch_handler = render_widget_host_->has_touch_handler() &&
touch_events_enabled_;
@@ -2690,8 +2695,8 @@
lparam = MAKELPARAM(point.x, point.y);
if (message == WM_POINTERDOWN) {
- pointer_down_context_ = true;
if (!base::win::IsMetroProcess()) {
+ pointer_down_context_ = true;
SetFocus();
received_focus_change_after_pointer_down_ = false;
MessageLoop::current()->PostDelayedTask(FROM_HERE,
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698