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

Unified Diff: ui/base/win/mouse_wheel_util.cc

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 | « ui/base/win/mouse_wheel_util.h ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/mouse_wheel_util.cc
===================================================================
--- ui/base/win/mouse_wheel_util.cc (revision 98345)
+++ ui/base/win/mouse_wheel_util.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "views/focus/focus_util_win.h"
+#include "ui/base/win/mouse_wheel_util.h"
#include <windowsx.h>
@@ -10,10 +10,8 @@
#include "ui/base/view_prop.h"
#include "ui/base/win/hwnd_util.h"
-using ui::ViewProp;
+namespace ui {
-namespace views {
-
// Property used to indicate the HWND supports having mouse wheel messages
// rerouted to it.
static const char* const kHWNDSupportMouseWheelRerouting =
@@ -34,7 +32,7 @@
}
static bool IsCompatibleWithMouseWheelRedirection(HWND window) {
- std::wstring class_name = ui::GetClassName(window);
+ std::wstring class_name = GetClassName(window);
// Mousewheel redirection to comboboxes is a surprising and
// undesireable user behavior.
return !(class_name == L"ComboBox" ||
@@ -42,7 +40,7 @@
}
static bool CanRedirectMouseWheelFrom(HWND window) {
- std::wstring class_name = ui::GetClassName(window);
+ std::wstring class_name = GetClassName(window);
// Older Thinkpad mouse wheel drivers create a window under mouse wheel
// pointer. Detect if we are dealing with this window. In this case we
@@ -118,4 +116,4 @@
return false;
}
-} // namespace views
+} // namespace ui
« no previous file with comments | « ui/base/win/mouse_wheel_util.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698