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

Side by Side Diff: chrome/views/focus/focus_util_win.cc

Issue 42624: Moving the mouse-wheel processing code out of the FocusManager (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/views/focus/focus_util_win.h ('k') | chrome/views/views.vcproj » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/views/focus/focus_util_win.h" 5 #include "chrome/views/focus/focus_util_win.h"
6 6
7 #include <windowsx.h>
8
7 #include "base/win_util.h" 9 #include "base/win_util.h"
8 10
9 namespace views { 11 namespace views {
10 12
11 // Property used to indicate the HWND supports having mouse wheel messages 13 // Property used to indicate the HWND supports having mouse wheel messages
12 // rerouted to it. 14 // rerouted to it.
13 static const wchar_t* const kHWNDSupportMouseWheelRerouting = 15 static const wchar_t* const kHWNDSupportMouseWheelRerouting =
14 L"__HWND_MW_REROUTE_OK"; 16 L"__HWND_MW_REROUTE_OK";
15 17
16 static bool WindowSupportsRerouteMouseWheel(HWND window) { 18 static bool WindowSupportsRerouteMouseWheel(HWND window) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 109 }
108 // If redirection is disallowed, try the parent. 110 // If redirection is disallowed, try the parent.
109 window_under_wheel = GetAncestor(window_under_wheel, GA_PARENT); 111 window_under_wheel = GetAncestor(window_under_wheel, GA_PARENT);
110 } 112 }
111 // If we traversed back to the starting point, we should process 113 // If we traversed back to the starting point, we should process
112 // this message normally; return false. 114 // this message normally; return false.
113 return false; 115 return false;
114 } 116 }
115 117
116 } // namespace views 118 } // namespace views
OLDNEW
« no previous file with comments | « chrome/views/focus/focus_util_win.h ('k') | chrome/views/views.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698