diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 23:45:15 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 23:45:15 +0000 |
commit | 137051a0ce6a4ef450ce39bcafd61d1efd0b1682 (patch) | |
tree | 30c679b723b5281b4f8d2cdf9b2f7ed0bc9766fe /ui/views/widget | |
parent | 9c1f461f49ba3f0b736537a890aa5bbb4f50d3f3 (diff) | |
download | chromium_src-137051a0ce6a4ef450ce39bcafd61d1efd0b1682.zip chromium_src-137051a0ce6a4ef450ce39bcafd61d1efd0b1682.tar.gz chromium_src-137051a0ce6a4ef450ce39bcafd61d1efd0b1682.tar.bz2 |
Reorder methods in class View to better isolate methods that shouldn't be public.
Specifically, move most event handlers and processing functions to protected now that RootView is a friend.
BUG=none
TEST=compiles, existing unittests
Review URL: http://codereview.chromium.org/6286032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget')
-rw-r--r-- | ui/views/widget/root_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc index 47371cd..6ca3cb3 100644 --- a/ui/views/widget/root_view.cc +++ b/ui/views/widget/root_view.cc @@ -49,7 +49,7 @@ bool RootView::OnMousePressed(const MouseEvent& event) { // Find the most View most tightly enclosing the event location that wants to // handle events. - mouse_pressed_handler_ = GetViewForPoint(event.location()); + mouse_pressed_handler_ = GetEventHandlerForPoint(event.location()); // Walk up the tree from that View until we find one that handles it. while (mouse_pressed_handler_ && mouse_pressed_handler_ != this) { @@ -100,7 +100,7 @@ void RootView::OnMouseCaptureLost() { void RootView::OnMouseMoved(const MouseEvent& event) { // TODO(beng): Update cursor. - View* v = GetViewForPoint(event.location()); + View* v = GetEventHandlerForPoint(event.location()); while (v && !v->enabled() && (v != mouse_move_handler_)) v = v->parent(); if (v && v != this) { |