| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
| 23 * DAMAGE. | 23 * DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "web/LinkHighlightImpl.h" | 26 #include "web/LinkHighlightImpl.h" |
| 27 | 27 |
| 28 #include <memory> | 28 #include <memory> |
| 29 #include "bindings/core/v8/ExceptionState.h" | 29 #include "bindings/core/v8/ExceptionState.h" |
| 30 #include "core/dom/Node.h" | 30 #include "core/dom/Node.h" |
| 31 #include "core/events/WebInputEventConversion.h" |
| 31 #include "core/exported/WebViewBase.h" | 32 #include "core/exported/WebViewBase.h" |
| 32 #include "core/frame/FrameView.h" | 33 #include "core/frame/FrameView.h" |
| 33 #include "core/input/EventHandler.h" | 34 #include "core/input/EventHandler.h" |
| 34 #include "core/page/Page.h" | 35 #include "core/page/Page.h" |
| 35 #include "core/page/TouchDisambiguation.h" | 36 #include "core/page/TouchDisambiguation.h" |
| 36 #include "platform/geometry/IntRect.h" | 37 #include "platform/geometry/IntRect.h" |
| 37 #include "platform/graphics/GraphicsLayer.h" | 38 #include "platform/graphics/GraphicsLayer.h" |
| 38 #include "platform/testing/URLTestHelpers.h" | 39 #include "platform/testing/URLTestHelpers.h" |
| 39 #include "platform/testing/UnitTestHelpers.h" | 40 #include "platform/testing/UnitTestHelpers.h" |
| 40 #include "platform/wtf/PtrUtil.h" | 41 #include "platform/wtf/PtrUtil.h" |
| 41 #include "public/platform/Platform.h" | 42 #include "public/platform/Platform.h" |
| 42 #include "public/platform/WebContentLayer.h" | 43 #include "public/platform/WebContentLayer.h" |
| 43 #include "public/platform/WebFloatPoint.h" | 44 #include "public/platform/WebFloatPoint.h" |
| 44 #include "public/platform/WebInputEvent.h" | 45 #include "public/platform/WebInputEvent.h" |
| 45 #include "public/platform/WebSize.h" | 46 #include "public/platform/WebSize.h" |
| 46 #include "public/platform/WebURLLoaderMockFactory.h" | 47 #include "public/platform/WebURLLoaderMockFactory.h" |
| 47 #include "public/web/WebFrame.h" | 48 #include "public/web/WebFrame.h" |
| 48 #include "public/web/WebFrameClient.h" | 49 #include "public/web/WebFrameClient.h" |
| 49 #include "public/web/WebViewClient.h" | 50 #include "public/web/WebViewClient.h" |
| 50 #include "testing/gtest/include/gtest/gtest.h" | 51 #include "testing/gtest/include/gtest/gtest.h" |
| 51 #include "web/WebInputEventConversion.h" | |
| 52 #include "web/WebLocalFrameImpl.h" | 52 #include "web/WebLocalFrameImpl.h" |
| 53 #include "web/tests/FrameTestHelpers.h" | 53 #include "web/tests/FrameTestHelpers.h" |
| 54 | 54 |
| 55 namespace blink { | 55 namespace blink { |
| 56 | 56 |
| 57 namespace { | 57 namespace { |
| 58 | 58 |
| 59 GestureEventWithHitTestResults GetTargetedEvent(WebViewBase* web_view_impl, | 59 GestureEventWithHitTestResults GetTargetedEvent(WebViewBase* web_view_impl, |
| 60 WebGestureEvent& touch_event) { | 60 WebGestureEvent& touch_event) { |
| 61 WebGestureEvent scaled_event = TransformWebGestureEvent( | 61 WebGestureEvent scaled_event = TransformWebGestureEvent( |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 web_view_impl->EnableTapHighlights(highlight_nodes); | 259 web_view_impl->EnableTapHighlights(highlight_nodes); |
| 260 EXPECT_EQ(2U, web_view_impl->NumLinkHighlights()); | 260 EXPECT_EQ(2U, web_view_impl->NumLinkHighlights()); |
| 261 | 261 |
| 262 Platform::Current() | 262 Platform::Current() |
| 263 ->GetURLLoaderMockFactory() | 263 ->GetURLLoaderMockFactory() |
| 264 ->UnregisterAllURLsAndClearMemoryCache(); | 264 ->UnregisterAllURLsAndClearMemoryCache(); |
| 265 } | 265 } |
| 266 | 266 |
| 267 } // namespace blink | 267 } // namespace blink |
| OLD | NEW |