| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "components/html_viewer/blink_input_events_type_converters.h" | 6 #include "mojo/converters/blink/blink_input_events_type_converters.h" |
| 7 #include "mojo/converters/input_events/input_events_type_converters.h" | 7 #include "mojo/converters/input_events/input_events_type_converters.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "third_party/WebKit/public/web/WebInputEvent.h" | 9 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
| 11 #include "ui/events/event_utils.h" | 11 #include "ui/events/event_utils.h" |
| 12 #include "ui/events/test/events_test_utils.h" | 12 #include "ui/events/test/events_test_utils.h" |
| 13 | 13 |
| 14 using ui::EventTimeForNow; | 14 using ui::EventTimeForNow; |
| 15 using blink::WebInputEvent; | 15 using blink::WebInputEvent; |
| 16 using blink::WebMouseEvent; | 16 using blink::WebMouseEvent; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 scoped_ptr<ui::MouseWheelEvent> ui_wheel( | 89 scoped_ptr<ui::MouseWheelEvent> ui_wheel( |
| 90 static_cast<ui::MouseWheelEvent*>(new_event.release())); | 90 static_cast<ui::MouseWheelEvent*>(new_event.release())); |
| 91 | 91 |
| 92 EXPECT_EQ(-1 * ui::MouseWheelEvent::kWheelDelta, ui_wheel->x_offset()); | 92 EXPECT_EQ(-1 * ui::MouseWheelEvent::kWheelDelta, ui_wheel->x_offset()); |
| 93 EXPECT_EQ(-2 * ui::MouseWheelEvent::kWheelDelta, ui_wheel->y_offset()); | 93 EXPECT_EQ(-2 * ui::MouseWheelEvent::kWheelDelta, ui_wheel->y_offset()); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace | 96 } // namespace |
| 97 } // namespace mojo | 97 } // namespace mojo |
| OLD | NEW |