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 "views/focus/focus_util_win.h" | 5 #include "views/focus/focus_util_win.h" |
6 | 6 |
7 #include <windowsx.h> | 7 #include <windowsx.h> |
8 | 8 |
9 #include "app/view_prop.h" | |
10 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "ui/base/view_prop.h" |
11 #include "ui/base/win/hwnd_util.h" | 11 #include "ui/base/win/hwnd_util.h" |
12 | 12 |
13 using app::ViewProp; | 13 using ui::ViewProp; |
14 | 14 |
15 namespace views { | 15 namespace views { |
16 | 16 |
17 // Property used to indicate the HWND supports having mouse wheel messages | 17 // Property used to indicate the HWND supports having mouse wheel messages |
18 // rerouted to it. | 18 // rerouted to it. |
19 static const char* const kHWNDSupportMouseWheelRerouting = | 19 static const char* const kHWNDSupportMouseWheelRerouting = |
20 "__HWND_MW_REROUTE_OK"; | 20 "__HWND_MW_REROUTE_OK"; |
21 | 21 |
22 static bool WindowSupportsRerouteMouseWheel(HWND window) { | 22 static bool WindowSupportsRerouteMouseWheel(HWND window) { |
23 while (GetWindowLong(window, GWL_STYLE) & WS_CHILD) { | 23 while (GetWindowLong(window, GWL_STYLE) & WS_CHILD) { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 112 } |
113 // If redirection is disallowed, try the parent. | 113 // If redirection is disallowed, try the parent. |
114 window_under_wheel = GetAncestor(window_under_wheel, GA_PARENT); | 114 window_under_wheel = GetAncestor(window_under_wheel, GA_PARENT); |
115 } | 115 } |
116 // If we traversed back to the starting point, we should process | 116 // If we traversed back to the starting point, we should process |
117 // this message normally; return false. | 117 // this message normally; return false. |
118 return false; | 118 return false; |
119 } | 119 } |
120 | 120 |
121 } // namespace views | 121 } // namespace views |
OLD | NEW |