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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
7 #include "ui/events/event.h" | 7 #include "ui/events/event.h" |
8 #include "ui/events/event_utils.h" | 8 #include "ui/events/event_utils.h" |
9 #include "ui/events/keycodes/dom3/dom_code.h" | 9 #include "ui/events/keycodes/dom/dom_code.h" |
10 #include "ui/events/keycodes/dom4/keycode_converter.h" | 10 #include "ui/events/keycodes/dom/keycode_converter.h" |
11 #include "ui/events/test/events_test_utils.h" | 11 #include "ui/events/test/events_test_utils.h" |
12 | 12 |
13 #if defined(USE_X11) | 13 #if defined(USE_X11) |
14 #include <X11/Xlib.h> | 14 #include <X11/Xlib.h> |
15 #include "ui/events/test/events_test_utils_x11.h" | 15 #include "ui/events/test/events_test_utils_x11.h" |
16 #include "ui/gfx/x/x11_types.h" | 16 #include "ui/gfx/x/x11_types.h" |
17 #endif | 17 #endif |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
20 | 20 |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 | 598 |
599 { | 599 { |
600 const float angle_too_big = 400; | 600 const float angle_too_big = 400; |
601 TouchEvent event(ui::ET_TOUCH_PRESSED, gfx::Point(0, 0), 0, 0, time, | 601 TouchEvent event(ui::ET_TOUCH_PRESSED, gfx::Point(0, 0), 0, 0, time, |
602 radius_x, radius_y, angle_too_big, 0); | 602 radius_x, radius_y, angle_too_big, 0); |
603 EXPECT_FLOAT_EQ(400 - 360, event.rotation_angle()); | 603 EXPECT_FLOAT_EQ(400 - 360, event.rotation_angle()); |
604 } | 604 } |
605 } | 605 } |
606 | 606 |
607 } // namespace ui | 607 } // namespace ui |
OLD | NEW |