summaryrefslogtreecommitdiffstats
path: root/views/widget/root_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/root_view.cc')
-rw-r--r--views/widget/root_view.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc
index 08b7e6e..df11d3e 100644
--- a/views/widget/root_view.cc
+++ b/views/widget/root_view.cc
@@ -408,6 +408,17 @@ bool RootView::ConvertPointToMouseHandler(const gfx::Point& l,
return true;
}
+void RootView::UpdateCursor(const MouseEvent& e) {
+ gfx::NativeCursor cursor = NULL;
+ View* v = GetViewForPoint(e.location());
+ if (v && v != this) {
+ gfx::Point l(e.location());
+ View::ConvertPointToView(this, v, &l);
+ cursor = v->GetCursorForPoint(e.GetType(), l.x(), l.y());
+ }
+ SetActiveCursor(cursor);
+}
+
bool RootView::OnMouseDragged(const MouseEvent& e) {
UpdateCursor(e);