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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/mouse_wheel_util.h
===================================================================
--- ui/base/win/mouse_wheel_util.h (revision 98345)
+++ ui/base/win/mouse_wheel_util.h (working copy)
@@ -2,25 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef VIEWS_FOCUS_FOCUS_UTIL_WIN_H_
-#define VIEWS_FOCUS_FOCUS_UTIL_WIN_H_
+#ifndef UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_
+#define UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_
#pragma once
#include <windows.h>
-#include "views/views_export.h"
+#include "ui/base/ui_export.h"
namespace ui {
+
class ViewProp;
-}
-namespace views {
-
// Marks the passed |hwnd| as supporting mouse-wheel message rerouting.
// We reroute the mouse wheel messages to such HWND when they are under the
// mouse pointer (but are not the active window). Callers own the returned
// object.
-VIEWS_EXPORT ui::ViewProp* SetWindowSupportsRerouteMouseWheel(HWND hwnd);
+UI_EXPORT ViewProp* SetWindowSupportsRerouteMouseWheel(HWND hwnd);
// Forwards mouse wheel messages to the window under it.
// Windows sends mouse wheel messages to the currently active window.
@@ -29,9 +27,9 @@
// mouse wheel in order to scroll that window. This is arguably a better user
// experience. The returns value says whether the mouse wheel message was
// successfully redirected.
-VIEWS_EXPORT bool RerouteMouseWheel(HWND window, WPARAM w_param,
- LPARAM l_param);
+UI_EXPORT bool RerouteMouseWheel(HWND window, WPARAM w_param,
+ LPARAM l_param);
-} // namespace views
+} // namespace ui
-#endif // VIEWS_FOCUS_FOCUS_UTIL_WIN_H_
+#endif // UI_BASE_WIN_MOUSE_WHEEL_UTIL_H_
« 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