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

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

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (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/events/event_unittest.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 151481)
+++ ui/views/events/event_aura.cc (working copy)
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/views/events/event.h"
-
-#include "base/logging.h"
-#include "ui/base/event.h"
-#include "ui/base/keycodes/keyboard_code_conversion.h"
-
-namespace views {
-
-////////////////////////////////////////////////////////////////////////////////
-// TouchEvent, public:
-
-TouchEvent::TouchEvent(const ui::NativeEvent& event)
- : LocatedEvent(static_cast<const ui::LocatedEvent&>(*event)),
- touch_id_(static_cast<ui::TouchEvent*>(event)->touch_id()),
- radius_x_(static_cast<ui::TouchEvent*>(event)->radius_x()),
- radius_y_(static_cast<ui::TouchEvent*>(event)->radius_y()),
- rotation_angle_(
- static_cast<ui::TouchEvent*>(event)->rotation_angle()),
- force_(static_cast<ui::TouchEvent*>(event)->force()) {
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// MouseWheelEvent, public:
-
-MouseWheelEvent::MouseWheelEvent(const ui::NativeEvent& native_event)
- : MouseEvent(static_cast<const ui::MouseEvent&>(*native_event)),
- offset_(ui::GetMouseWheelOffset(native_event->native_event())) {
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// ScrollEvent, public:
-
-ScrollEvent::ScrollEvent(const ui::NativeEvent& native_event)
- : MouseEvent(static_cast<const ui::MouseEvent&>(*native_event)) {
- CHECK(ui::GetScrollOffsets(
- native_event->native_event(), &x_offset_, &y_offset_));
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// GestureEvent, public:
-
-GestureEvent::GestureEvent(const ui::NativeEvent& event)
- : LocatedEvent(static_cast<const ui::LocatedEvent&>(*event)),
- details_(static_cast<ui::GestureEvent*>(event)->details()) {
-}
-
-} // namespace views
« no previous file with comments | « ui/views/events/event.cc ('k') | ui/views/events/event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698