OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/events/blink/web_input_event.h" | 5 #include "ui/events/blink/web_input_event.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include "base/bind.h" |
10 #include "base/macros.h" | 11 #include "base/macros.h" |
11 #include "build/build_config.h" | 12 #include "build/build_config.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "ui/events/base_event_utils.h" | 14 #include "ui/events/base_event_utils.h" |
14 #include "ui/events/blink/blink_event_util.h" | 15 #include "ui/events/blink/blink_event_util.h" |
15 #include "ui/events/event.h" | 16 #include "ui/events/event.h" |
16 #include "ui/events/event_utils.h" | 17 #include "ui/events/event_utils.h" |
17 #include "ui/events/keycodes/dom/dom_code.h" | 18 #include "ui/events/keycodes/dom/dom_code.h" |
18 #include "ui/events/keycodes/dom/dom_key.h" | 19 #include "ui/events/keycodes/dom/dom_key.h" |
19 #include "ui/events/keycodes/dom/keycode_converter.h" | 20 #include "ui/events/keycodes/dom/keycode_converter.h" |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 EXPECT_EQ(0, webkit_event.tiltY); | 522 EXPECT_EQ(0, webkit_event.tiltY); |
522 EXPECT_TRUE(std::isnan(webkit_event.force)); | 523 EXPECT_TRUE(std::isnan(webkit_event.force)); |
523 EXPECT_EQ(123, webkit_event.x); | 524 EXPECT_EQ(123, webkit_event.x); |
524 EXPECT_EQ(123, webkit_event.windowX); | 525 EXPECT_EQ(123, webkit_event.windowX); |
525 EXPECT_EQ(321, webkit_event.y); | 526 EXPECT_EQ(321, webkit_event.y); |
526 EXPECT_EQ(321, webkit_event.windowY); | 527 EXPECT_EQ(321, webkit_event.windowY); |
527 } | 528 } |
528 } | 529 } |
529 | 530 |
530 } // namespace ui | 531 } // namespace ui |
OLD | NEW |