| 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 22 matching lines...) Expand all Loading... |
| 33 #include "WebFrameClient.h" | 33 #include "WebFrameClient.h" |
| 34 #include "WebFrameImpl.h" | 34 #include "WebFrameImpl.h" |
| 35 #include "WebInputEvent.h" | 35 #include "WebInputEvent.h" |
| 36 #include "WebInputEventConversion.h" | 36 #include "WebInputEventConversion.h" |
| 37 #include "WebViewClient.h" | 37 #include "WebViewClient.h" |
| 38 #include "WebViewImpl.h" | 38 #include "WebViewImpl.h" |
| 39 #include "bindings/v8/ExceptionStatePlaceholder.h" | 39 #include "bindings/v8/ExceptionStatePlaceholder.h" |
| 40 #include "core/dom/Node.h" | 40 #include "core/dom/Node.h" |
| 41 #include "core/page/FrameView.h" | 41 #include "core/page/FrameView.h" |
| 42 #include "core/page/TouchDisambiguation.h" | 42 #include "core/page/TouchDisambiguation.h" |
| 43 #include "core/platform/graphics/IntRect.h" | 43 #include "platform/geometry/IntRect.h" |
| 44 #include "public/platform/Platform.h" | 44 #include "public/platform/Platform.h" |
| 45 #include "public/platform/WebContentLayer.h" | 45 #include "public/platform/WebContentLayer.h" |
| 46 #include "public/platform/WebFloatPoint.h" | 46 #include "public/platform/WebFloatPoint.h" |
| 47 #include "public/platform/WebSize.h" | 47 #include "public/platform/WebSize.h" |
| 48 #include "public/platform/WebUnitTestSupport.h" | 48 #include "public/platform/WebUnitTestSupport.h" |
| 49 #include "wtf/PassOwnPtr.h" | 49 #include "wtf/PassOwnPtr.h" |
| 50 | 50 |
| 51 | 51 |
| 52 using namespace WebKit; | 52 using namespace WebKit; |
| 53 using namespace WebCore; | 53 using namespace WebCore; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 IntRect boundingBox(touchEvent.x - touchEvent.data.tap.width / 2, touchEvent
.y - touchEvent.data.tap.height / 2, touchEvent.data.tap.width, touchEvent.data.
tap.height); | 221 IntRect boundingBox(touchEvent.x - touchEvent.data.tap.width / 2, touchEvent
.y - touchEvent.data.tap.height / 2, touchEvent.data.tap.width, touchEvent.data.
tap.height); |
| 222 findGoodTouchTargets(boundingBox, webViewImpl->mainFrameImpl()->frame(), goo
dTargets, highlightNodes); | 222 findGoodTouchTargets(boundingBox, webViewImpl->mainFrameImpl()->frame(), goo
dTargets, highlightNodes); |
| 223 | 223 |
| 224 webViewImpl->enableTapHighlights(highlightNodes); | 224 webViewImpl->enableTapHighlights(highlightNodes); |
| 225 EXPECT_EQ(2U, webViewImpl->numLinkHighlights()); | 225 EXPECT_EQ(2U, webViewImpl->numLinkHighlights()); |
| 226 | 226 |
| 227 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); | 227 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace | 230 } // namespace |
| OLD | NEW |