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/exported/WebViewBase.h" |
31 #include "core/frame/FrameView.h" | 32 #include "core/frame/FrameView.h" |
32 #include "core/input/EventHandler.h" | 33 #include "core/input/EventHandler.h" |
33 #include "core/page/Page.h" | 34 #include "core/page/Page.h" |
34 #include "core/page/TouchDisambiguation.h" | 35 #include "core/page/TouchDisambiguation.h" |
35 #include "platform/geometry/IntRect.h" | 36 #include "platform/geometry/IntRect.h" |
36 #include "platform/testing/URLTestHelpers.h" | 37 #include "platform/testing/URLTestHelpers.h" |
37 #include "platform/testing/UnitTestHelpers.h" | 38 #include "platform/testing/UnitTestHelpers.h" |
38 #include "platform/wtf/PtrUtil.h" | 39 #include "platform/wtf/PtrUtil.h" |
39 #include "public/platform/Platform.h" | 40 #include "public/platform/Platform.h" |
40 #include "public/platform/WebContentLayer.h" | 41 #include "public/platform/WebContentLayer.h" |
41 #include "public/platform/WebFloatPoint.h" | 42 #include "public/platform/WebFloatPoint.h" |
42 #include "public/platform/WebInputEvent.h" | 43 #include "public/platform/WebInputEvent.h" |
43 #include "public/platform/WebSize.h" | 44 #include "public/platform/WebSize.h" |
44 #include "public/platform/WebURLLoaderMockFactory.h" | 45 #include "public/platform/WebURLLoaderMockFactory.h" |
45 #include "public/web/WebFrame.h" | 46 #include "public/web/WebFrame.h" |
46 #include "public/web/WebFrameClient.h" | 47 #include "public/web/WebFrameClient.h" |
47 #include "public/web/WebViewClient.h" | 48 #include "public/web/WebViewClient.h" |
48 #include "testing/gtest/include/gtest/gtest.h" | 49 #include "testing/gtest/include/gtest/gtest.h" |
49 #include "web/WebInputEventConversion.h" | 50 #include "web/WebInputEventConversion.h" |
50 #include "web/WebLocalFrameImpl.h" | 51 #include "web/WebLocalFrameImpl.h" |
51 #include "web/WebViewImpl.h" | |
52 #include "web/tests/FrameTestHelpers.h" | 52 #include "web/tests/FrameTestHelpers.h" |
53 | 53 |
54 namespace blink { | 54 namespace blink { |
55 | 55 |
56 namespace { | 56 namespace { |
57 | 57 |
58 GestureEventWithHitTestResults GetTargetedEvent(WebViewImpl* web_view_impl, | 58 GestureEventWithHitTestResults GetTargetedEvent(WebViewImpl* web_view_impl, |
59 WebGestureEvent& touch_event) { | 59 WebGestureEvent& touch_event) { |
60 WebGestureEvent scaled_event = TransformWebGestureEvent( | 60 WebGestureEvent scaled_event = TransformWebGestureEvent( |
61 web_view_impl->MainFrameImpl()->GetFrameView(), touch_event); | 61 web_view_impl->MainFrameImpl()->GetFrameView(), touch_event); |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 web_view_impl->EnableTapHighlights(highlight_nodes); | 258 web_view_impl->EnableTapHighlights(highlight_nodes); |
259 EXPECT_EQ(2U, web_view_impl->NumLinkHighlights()); | 259 EXPECT_EQ(2U, web_view_impl->NumLinkHighlights()); |
260 | 260 |
261 Platform::Current() | 261 Platform::Current() |
262 ->GetURLLoaderMockFactory() | 262 ->GetURLLoaderMockFactory() |
263 ->UnregisterAllURLsAndClearMemoryCache(); | 263 ->UnregisterAllURLsAndClearMemoryCache(); |
264 } | 264 } |
265 | 265 |
266 } // namespace blink | 266 } // namespace blink |
OLD | NEW |