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

Side by Side Diff: ui/base/win/mouse_wheel_util.h

Issue 7753025: Move the mouse wheel utils from views to ui\base\win, to get rid of some views dependencies in co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_
6 #define VIEWS_FOCUS_FOCUS_UTIL_WIN_H_ 6 #define UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 10
11 #include "views/views_export.h" 11 #include "ui/base/ui_export.h"
12 12
13 namespace ui { 13 namespace ui {
14
14 class ViewProp; 15 class ViewProp;
15 }
16
17 namespace views {
18 16
19 // Marks the passed |hwnd| as supporting mouse-wheel message rerouting. 17 // Marks the passed |hwnd| as supporting mouse-wheel message rerouting.
20 // We reroute the mouse wheel messages to such HWND when they are under the 18 // We reroute the mouse wheel messages to such HWND when they are under the
21 // mouse pointer (but are not the active window). Callers own the returned 19 // mouse pointer (but are not the active window). Callers own the returned
22 // object. 20 // object.
23 VIEWS_EXPORT ui::ViewProp* SetWindowSupportsRerouteMouseWheel(HWND hwnd); 21 UI_EXPORT ViewProp* SetWindowSupportsRerouteMouseWheel(HWND hwnd);
24 22
25 // Forwards mouse wheel messages to the window under it. 23 // Forwards mouse wheel messages to the window under it.
26 // Windows sends mouse wheel messages to the currently active window. 24 // Windows sends mouse wheel messages to the currently active window.
27 // This causes a window to scroll even if it is not currently under the mouse 25 // This causes a window to scroll even if it is not currently under the mouse
28 // wheel. The following code gives mouse wheel messages to the window under the 26 // wheel. The following code gives mouse wheel messages to the window under the
29 // mouse wheel in order to scroll that window. This is arguably a better user 27 // mouse wheel in order to scroll that window. This is arguably a better user
30 // experience. The returns value says whether the mouse wheel message was 28 // experience. The returns value says whether the mouse wheel message was
31 // successfully redirected. 29 // successfully redirected.
32 VIEWS_EXPORT bool RerouteMouseWheel(HWND window, WPARAM w_param, 30 UI_EXPORT bool RerouteMouseWheel(HWND window, WPARAM w_param,
33 LPARAM l_param); 31 LPARAM l_param);
34 32
35 } // namespace views 33 } // namespace ui
36 34
37 #endif // VIEWS_FOCUS_FOCUS_UTIL_WIN_H_ 35 #endif // UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/base/win/mouse_wheel_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698