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

Side by Side Diff: views/focus/focus_util_win.h

Issue 5184009: Revert 66784 - Converts usage of SetProp/GetProp to a map. Even after making ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | « views/controls/native_control_win.cc ('k') | views/focus/focus_util_win.cc » ('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 #ifndef VIEWS_FOCUS_FOCUS_UTIL_WIN_H_ 5 #ifndef VIEWS_FOCUS_FOCUS_UTIL_WIN_H_
6 #define VIEWS_FOCUS_FOCUS_UTIL_WIN_H_ 6 #define VIEWS_FOCUS_FOCUS_UTIL_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
11 namespace app { 11 namespace app {
12 class ViewProp; 12 namespace win {
13 class ScopedProp;
14 }
13 } 15 }
14 16
15 namespace views { 17 namespace views {
16 18
17 // Marks the passed |hwnd| as supporting mouse-wheel message rerouting. 19 // Marks the passed |hwnd| as supporting mouse-wheel message rerouting.
18 // We reroute the mouse wheel messages to such HWND when they are under the 20 // We reroute the mouse wheel messages to such HWND when they are under the
19 // mouse pointer (but are not the active window). Callers own the returned 21 // mouse pointer (but are not the active window). Callers must delete the
20 // object. 22 // returned object before the window is destroyed (see ScopedProp for details).
21 app::ViewProp* SetWindowSupportsRerouteMouseWheel(HWND hwnd); 23 app::win::ScopedProp* SetWindowSupportsRerouteMouseWheel(HWND hwnd);
22 24
23 // Forwards mouse wheel messages to the window under it. 25 // Forwards mouse wheel messages to the window under it.
24 // Windows sends mouse wheel messages to the currently active window. 26 // Windows sends mouse wheel messages to the currently active window.
25 // This causes a window to scroll even if it is not currently under the mouse 27 // This causes a window to scroll even if it is not currently under the mouse
26 // wheel. The following code gives mouse wheel messages to the window under the 28 // wheel. The following code gives mouse wheel messages to the window under the
27 // mouse wheel in order to scroll that window. This is arguably a better user 29 // mouse wheel in order to scroll that window. This is arguably a better user
28 // experience. The returns value says whether the mouse wheel message was 30 // experience. The returns value says whether the mouse wheel message was
29 // successfully redirected. 31 // successfully redirected.
30 bool RerouteMouseWheel(HWND window, WPARAM w_param, LPARAM l_param); 32 bool RerouteMouseWheel(HWND window, WPARAM w_param, LPARAM l_param);
31 33
32 } // namespace views 34 } // namespace views
33 35
34 #endif // VIEWS_FOCUS_FOCUS_UTIL_WIN_H_ 36 #endif // VIEWS_FOCUS_FOCUS_UTIL_WIN_H_
OLDNEW
« no previous file with comments | « views/controls/native_control_win.cc ('k') | views/focus/focus_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698