OLD | NEW |
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 Loading... |
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 |
OLD | NEW |