| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 #include "core/dom/Touch.h" | 35 #include "core/dom/Touch.h" |
| 36 #include "core/dom/TouchList.h" | 36 #include "core/dom/TouchList.h" |
| 37 #include "core/events/GestureEvent.h" | 37 #include "core/events/GestureEvent.h" |
| 38 #include "core/events/KeyboardEvent.h" | 38 #include "core/events/KeyboardEvent.h" |
| 39 #include "core/events/MouseEvent.h" | 39 #include "core/events/MouseEvent.h" |
| 40 #include "core/events/TouchEvent.h" | 40 #include "core/events/TouchEvent.h" |
| 41 #include "core/frame/FrameHost.h" | 41 #include "core/frame/FrameHost.h" |
| 42 #include "core/frame/FrameView.h" | 42 #include "core/frame/FrameView.h" |
| 43 #include "core/frame/LocalFrame.h" | 43 #include "core/frame/LocalFrame.h" |
| 44 #include "core/page/Page.h" |
| 44 #include "core/rendering/RenderView.h" | 45 #include "core/rendering/RenderView.h" |
| 45 #include "public/web/WebFrame.h" | 46 #include "public/web/WebFrame.h" |
| 46 #include "public/web/WebSettings.h" | 47 #include "public/web/WebSettings.h" |
| 47 #include "web/WebViewImpl.h" | 48 #include "web/WebViewImpl.h" |
| 48 #include "web/tests/FrameTestHelpers.h" | 49 #include "web/tests/FrameTestHelpers.h" |
| 49 #include "web/tests/URLTestHelpers.h" | 50 #include "web/tests/URLTestHelpers.h" |
| 50 #include <gtest/gtest.h> | 51 #include <gtest/gtest.h> |
| 51 | 52 |
| 52 using namespace blink; | 53 using namespace blink; |
| 53 using namespace WebCore; | 54 using namespace WebCore; |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 587 |
| 587 PlatformTouchEventBuilder platformTouchBuilder(view, webTouchEvent); | 588 PlatformTouchEventBuilder platformTouchBuilder(view, webTouchEvent); |
| 588 EXPECT_FLOAT_EQ(10.6f, platformTouchBuilder.touchPoints()[0].screenPos()
.x()); | 589 EXPECT_FLOAT_EQ(10.6f, platformTouchBuilder.touchPoints()[0].screenPos()
.x()); |
| 589 EXPECT_FLOAT_EQ(10.4f, platformTouchBuilder.touchPoints()[0].screenPos()
.y()); | 590 EXPECT_FLOAT_EQ(10.4f, platformTouchBuilder.touchPoints()[0].screenPos()
.y()); |
| 590 EXPECT_FLOAT_EQ(5.3f + pinchOffset.x(), platformTouchBuilder.touchPoints
()[0].pos().x()); | 591 EXPECT_FLOAT_EQ(5.3f + pinchOffset.x(), platformTouchBuilder.touchPoints
()[0].pos().x()); |
| 591 EXPECT_FLOAT_EQ(5.2f + pinchOffset.y(), platformTouchBuilder.touchPoints
()[0].pos().y()); | 592 EXPECT_FLOAT_EQ(5.2f + pinchOffset.y(), platformTouchBuilder.touchPoints
()[0].pos().y()); |
| 592 } | 593 } |
| 593 } | 594 } |
| 594 | 595 |
| 595 } // anonymous namespace | 596 } // anonymous namespace |
| OLD | NEW |