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

Unified Diff: ui/base/event.cc

Issue 10868096: aura: Fix propagating wheel events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more 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/event.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/event.cc
diff --git a/ui/base/event.cc b/ui/base/event.cc
index 1b31197f7b3dd8016549df2c2697d5c976d61039..bb4af75197028e14b7a594a42b0590c90d92b6c1 100644
--- a/ui/base/event.cc
+++ b/ui/base/event.cc
@@ -122,14 +122,6 @@ LocatedEvent::LocatedEvent(EventType type,
system_location_(0, 0) {
}
-LocatedEvent::LocatedEvent(const LocatedEvent& model)
- : Event(model),
- location_(model.location_),
- root_location_(model.root_location_),
- valid_system_location_(model.valid_system_location_),
- system_location_(model.system_location_) {
-}
-
void LocatedEvent::UpdateForRootTransform(const Transform& root_transform) {
// Transform has to be done at root level.
DCHECK_EQ(root_location_.x(), location_.x());
@@ -245,9 +237,6 @@ void MouseEvent::SetClickCount(int click_count) {
set_flags(f);
}
-MouseEvent::MouseEvent(const MouseEvent& model) : LocatedEvent(model) {
-}
-
////////////////////////////////////////////////////////////////////////////////
// MouseWheelEvent
@@ -256,11 +245,6 @@ MouseWheelEvent::MouseWheelEvent(const base::NativeEvent& native_event)
offset_(GetMouseWheelOffset(native_event)) {
}
-MouseWheelEvent::MouseWheelEvent(const MouseEvent& mouse_event)
- : MouseEvent(mouse_event),
- offset_(GetMouseWheelOffset(mouse_event.native_event())) {
-}
-
MouseWheelEvent::MouseWheelEvent(const ScrollEvent& scroll_event)
: MouseEvent(scroll_event),
offset_(scroll_event.y_offset()) {
« no previous file with comments | « ui/base/event.h ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698