Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: third_party/WebKit/Source/web/LinkHighlightImplTest.cpp

Issue 2900593002: Move many more classes to use WebLocalFrameBase over WebLocalFrameImpl. (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13 matching lines...) Expand all
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/events/WebInputEventConversion.h"
32 #include "core/exported/WebViewBase.h" 32 #include "core/exported/WebViewBase.h"
33 #include "core/frame/LocalFrameView.h" 33 #include "core/frame/LocalFrameView.h"
34 #include "core/frame/WebLocalFrameBase.h"
34 #include "core/input/EventHandler.h" 35 #include "core/input/EventHandler.h"
35 #include "core/page/Page.h" 36 #include "core/page/Page.h"
36 #include "core/page/TouchDisambiguation.h" 37 #include "core/page/TouchDisambiguation.h"
37 #include "platform/geometry/IntRect.h" 38 #include "platform/geometry/IntRect.h"
38 #include "platform/graphics/GraphicsLayer.h" 39 #include "platform/graphics/GraphicsLayer.h"
39 #include "platform/testing/URLTestHelpers.h" 40 #include "platform/testing/URLTestHelpers.h"
40 #include "platform/testing/UnitTestHelpers.h" 41 #include "platform/testing/UnitTestHelpers.h"
41 #include "platform/wtf/PtrUtil.h" 42 #include "platform/wtf/PtrUtil.h"
42 #include "public/platform/Platform.h" 43 #include "public/platform/Platform.h"
43 #include "public/platform/WebContentLayer.h" 44 #include "public/platform/WebContentLayer.h"
44 #include "public/platform/WebFloatPoint.h" 45 #include "public/platform/WebFloatPoint.h"
45 #include "public/platform/WebInputEvent.h" 46 #include "public/platform/WebInputEvent.h"
46 #include "public/platform/WebSize.h" 47 #include "public/platform/WebSize.h"
47 #include "public/platform/WebURLLoaderMockFactory.h" 48 #include "public/platform/WebURLLoaderMockFactory.h"
48 #include "public/web/WebFrame.h" 49 #include "public/web/WebFrame.h"
49 #include "public/web/WebFrameClient.h" 50 #include "public/web/WebFrameClient.h"
50 #include "public/web/WebViewClient.h" 51 #include "public/web/WebViewClient.h"
51 #include "testing/gtest/include/gtest/gtest.h" 52 #include "testing/gtest/include/gtest/gtest.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(
62 web_view_impl->MainFrameImpl()->GetFrameView(), touch_event); 62 web_view_impl->MainFrameImpl()->GetFrameView(), touch_event);
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/LinkHighlightImpl.cpp ('k') | third_party/WebKit/Source/web/PageOverlayTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698