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

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

Issue 93863005: ui: Rename ui_export.h to ui_base_export.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UI_BASE_IMPLEMENTATION Created 6 years, 11 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 | « ui/base/win/message_box_win.h ('k') | ui/base/win/scoped_ole_initializer.h » ('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) 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 UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_ 5 #ifndef UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_
6 #define UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_ 6 #define UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_base_export.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 class ViewProp; 14 class ViewProp;
15 15
16 // Marks the passed |hwnd| as supporting mouse-wheel message rerouting. 16 // Marks the passed |hwnd| as supporting mouse-wheel message rerouting.
17 // We reroute the mouse wheel messages to such HWND when they are under the 17 // We reroute the mouse wheel messages to such HWND when they are under the
18 // mouse pointer (but are not the active window). Callers own the returned 18 // mouse pointer (but are not the active window). Callers own the returned
19 // object. 19 // object.
20 UI_EXPORT ViewProp* SetWindowSupportsRerouteMouseWheel(HWND hwnd); 20 UI_BASE_EXPORT ViewProp* SetWindowSupportsRerouteMouseWheel(HWND hwnd);
21 21
22 // Forwards mouse wheel messages to the window under it. 22 // Forwards mouse wheel messages to the window under it.
23 // Windows sends mouse wheel messages to the currently active window. 23 // Windows sends mouse wheel messages to the currently active window.
24 // This causes a window to scroll even if it is not currently under the mouse 24 // This causes a window to scroll even if it is not currently under the mouse
25 // wheel. The following code gives mouse wheel messages to the window under the 25 // wheel. The following code gives mouse wheel messages to the window under the
26 // mouse wheel in order to scroll that window. This is arguably a better user 26 // mouse wheel in order to scroll that window. This is arguably a better user
27 // experience. The returns value says whether the mouse wheel message was 27 // experience. The returns value says whether the mouse wheel message was
28 // successfully redirected. 28 // successfully redirected.
29 UI_EXPORT bool RerouteMouseWheel(HWND window, WPARAM w_param, 29 UI_BASE_EXPORT bool RerouteMouseWheel(HWND window,
30 LPARAM l_param); 30 WPARAM w_param,
31 LPARAM l_param);
31 32
32 } // namespace ui 33 } // namespace ui
33 34
34 #endif // UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_ 35 #endif // UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_
OLDNEW
« no previous file with comments | « ui/base/win/message_box_win.h ('k') | ui/base/win/scoped_ole_initializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698