Revert of Do not interchange MOUSE_MOVED and MOUSE_DRAGGED events in Widget (patchset...
commitf2d6fd8f14b22b4b15e5e8fd3ac2bb8141bef552
authortdanderson <tdanderson@chromium.org>
Fri, 7 Nov 2014 19:49:05 +0000 (7 11:49 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Nov 2014 19:49:28 +0000 (7 19:49 +0000)
treea89e676aef922d711fafd91f7f21444911533485
parent0fef34d4f5b2e5cd138cc9696f5f189c8c8c2384
Revert of Do not interchange MOUSE_MOVED and MOUSE_DRAGGED events in Widget (patchset #8 id:140001 of https://codereview.chromium.org/560053002/)

Reason for revert:
Responsible for the crash reported in crbug.com/430427. Relanding will require addressing crbug.com/431350 first.

Original issue's description:
> Do not interchange MOUSE_MOVED and MOUSE_DRAGGED events in Widget
>
> In Widget::OnMouseEvent(), do not handle MOUSE_MOVED
> events as MOUSE_DRAGGED events, and do not handle
> MOUSE_DRAGGED events as MOUSE_MOVED events; instead
> trust that the mouse event type has been set correctly
> before arriving at Widget. This also allows us to
> remove the member |is_mouse_button_pressed_|
> from Widget.
>
> BUG=412929, 412931
> TEST=WidgetTest.DragIntoView

BUG=412929, 412931
TBR=sadrul@chromium.org

Review URL: https://codereview.chromium.org/703643004

Cr-Commit-Position: refs/heads/master@{#303274}
ui/views/view_unittest.cc
ui/views/widget/root_view.cc
ui/views/widget/widget.cc
ui/views/widget/widget.h
ui/views/widget/widget_unittest.cc