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

Unified Diff: views/widget/root_view.cc

Issue 6591120: Update MouseEvent (initial pass). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 9 years, 9 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 | « views/events/event_x.cc ('k') | views/widget/widget_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/root_view.cc
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc
index 9d4bbc34648a60a9161b2e80605a4fbca4a5513b..d6864cf0955736b47d67620204287cc0de5665fb 100644
--- a/views/widget/root_view.cc
+++ b/views/widget/root_view.cc
@@ -85,7 +85,7 @@ void RootView::ProcessMouseDragCanceled() {
if (mouse_pressed_handler_) {
// Synthesize a release event.
MouseEvent release_event(ui::ET_MOUSE_RELEASED, last_mouse_event_x_,
- last_mouse_event_y_, last_mouse_event_flags_);
+ last_mouse_event_y_, last_mouse_event_flags_);
OnMouseReleased(release_event, true);
}
}
@@ -173,17 +173,6 @@ Widget* RootView::GetWidget() {
bool RootView::OnMousePressed(const MouseEvent& event) {
MouseEvent e(event, this);
- // This function does not normally handle non-client messages except for
- // non-client double-clicks. Actually, all double-clicks are special as the
- // are formed from a single-click followed by a double-click event. When the
- // double-click event lands on a different view than its single-click part,
- // we transform it into a single-click which prevents odd things.
- if ((e.flags() & ui::EF_IS_NON_CLIENT) &&
- !(e.flags() & ui::EF_IS_DOUBLE_CLICK)) {
- last_click_handler_ = NULL;
- return false;
- }
-
UpdateCursor(e);
SetMouseLocationAndFlags(e);
« no previous file with comments | « views/events/event_x.cc ('k') | views/widget/widget_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698