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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view_win.cc

Issue 63061: Fix mouse wheel redirection when omnibox has focus... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « chrome/browser/autocomplete/autocomplete_edit_view_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit_view_win.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit_view_win.cc (revision 13257)
+++ chrome/browser/autocomplete/autocomplete_edit_view_win.cc (working copy)
@@ -38,6 +38,7 @@
#include "chrome/common/notification_service.h"
#include "chrome/common/os_exchange_data.h"
#include "chrome/common/win_util.h"
+#include "chrome/views/focus/focus_util_win.h"
#include "googleurl/src/url_util.h"
#include "grit/generated_resources.h"
#include "skia/ext/skia_utils_win.h"
@@ -1611,6 +1612,17 @@
SetMsgHandled(true);
}
+
Peter Kasting 2009/04/08 16:54:20 Nit: extra newline
+BOOL AutocompleteEditViewWin::OnMouseWheel(UINT flags,
+ short delta,
+ CPoint point) {
+ // Forward the mouse-wheel message to the window under the mouse.
+ if (!views::RerouteMouseWheel(m_hWnd, MAKEWPARAM(flags, delta),
+ MAKELPARAM(point.x, point.y)))
+ SetMsgHandled(FALSE);
+ return 0;
+}
+
void AutocompleteEditViewWin::HandleKeystroke(UINT message,
TCHAR key,
UINT repeat_count,
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698