| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/views/events/event.h" | 5 #include "ui/views/events/event.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/base/event.h" | 8 #include "ui/base/event.h" |
| 9 #include "ui/base/keycodes/keyboard_code_conversion.h" | 9 #include "ui/base/keycodes/keyboard_code_conversion.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 : MouseEvent(native_event) { | 46 : MouseEvent(native_event) { |
| 47 CHECK(ui::GetScrollOffsets( | 47 CHECK(ui::GetScrollOffsets( |
| 48 native_event->native_event(), &x_offset_, &y_offset_)); | 48 native_event->native_event(), &x_offset_, &y_offset_)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 //////////////////////////////////////////////////////////////////////////////// | 51 //////////////////////////////////////////////////////////////////////////////// |
| 52 // GestureEvent, public: | 52 // GestureEvent, public: |
| 53 | 53 |
| 54 GestureEvent::GestureEvent(const NativeEvent& event) | 54 GestureEvent::GestureEvent(const NativeEvent& event) |
| 55 : LocatedEvent(event), | 55 : LocatedEvent(event), |
| 56 details_(static_cast<ui::GestureEventImpl*>(event)->details()) { | 56 details_(static_cast<ui::GestureEvent*>(event)->details()) { |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace views | 59 } // namespace views |
| OLD | NEW |