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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.cc

Issue 11098077: Grab mouse capture in the WM_POINTERDOWN message handler in the omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/ui/views/omnibox/omnibox_view_win.cc
===================================================================
--- chrome/browser/ui/views/omnibox/omnibox_view_win.cc (revision 160963)
+++ chrome/browser/ui/views/omnibox/omnibox_view_win.cc (working copy)
@@ -1449,8 +1449,10 @@
LRESULT OmniboxViewWin::OnPointerDown(UINT message,
WPARAM wparam,
LPARAM lparam) {
- if (!model()->has_focus())
+ if (!model()->has_focus()) {
SetFocus();
+ SetCapture();
sky 2012/10/11 19:24:25 Do you need a corresponding ReleaseCapture somewhe
ananta 2012/10/11 20:04:04 Added a ReleaseCapture in OnPointerUp.
+ }
if (IS_POINTER_FIRSTBUTTON_WPARAM(wparam)) {
TrackMousePosition(kLeft, CPoint(GET_X_LPARAM(lparam),
« 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