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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 10825353: Clean up some detritus that accumulated during the fixing of 125937. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/x/events_x.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
===================================================================
--- ui/views/widget/native_widget_aura.cc (revision 151623)
+++ ui/views/widget/native_widget_aura.cc (working copy)
@@ -792,16 +792,17 @@
bool NativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) {
DCHECK(window_->IsVisible());
if (event->type() == ui::ET_MOUSEWHEEL) {
- ui::MouseWheelEvent wheel_event(event);
- return delegate_->OnMouseEvent(wheel_event);
+ ui::MouseWheelEvent mwe(*event);
+ return delegate_->OnMouseEvent(mwe);
}
+
if (event->type() == ui::ET_SCROLL) {
if (delegate_->OnMouseEvent(*event))
return true;
// Convert unprocessed scroll events into wheel events.
- ui::MouseWheelEvent wheel_event(*static_cast<ui::ScrollEvent*>(event));
- return delegate_->OnMouseEvent(wheel_event);
+ ui::MouseWheelEvent mwe(*static_cast<ui::ScrollEvent*>(event));
+ return delegate_->OnMouseEvent(mwe);
}
if (tooltip_manager_.get())
tooltip_manager_->UpdateTooltip();
« no previous file with comments | « ui/base/x/events_x.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698