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

Unified Diff: ui/views/events/event_aura.cc

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (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/views/events/event.cc ('k') | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/events/event_aura.cc
===================================================================
--- ui/views/events/event_aura.cc (revision 151406)
+++ ui/views/events/event_aura.cc (working copy)
@@ -10,10 +10,6 @@
namespace views {
-MouseEvent::MouseEvent(const ui::NativeEvent& native_event)
- : LocatedEvent(static_cast<const ui::LocatedEvent&>(*native_event)) {
-}
-
////////////////////////////////////////////////////////////////////////////////
// TouchEvent, public:
@@ -31,7 +27,7 @@
// MouseWheelEvent, public:
MouseWheelEvent::MouseWheelEvent(const ui::NativeEvent& native_event)
- : MouseEvent(native_event),
+ : MouseEvent(static_cast<const ui::MouseEvent&>(*native_event)),
offset_(ui::GetMouseWheelOffset(native_event->native_event())) {
}
@@ -39,7 +35,7 @@
// ScrollEvent, public:
ScrollEvent::ScrollEvent(const ui::NativeEvent& native_event)
- : MouseEvent(native_event) {
+ : MouseEvent(static_cast<const ui::MouseEvent&>(*native_event)) {
CHECK(ui::GetScrollOffsets(
native_event->native_event(), &x_offset_, &y_offset_));
}
« no previous file with comments | « ui/views/events/event.cc ('k') | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698