| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "config.h" | 25 #include "config.h" |
| 26 | 26 |
| 27 #include "LinkHighlight.h" | 27 #include "LinkHighlight.h" |
| 28 | 28 |
| 29 #include <gtest/gtest.h> | 29 #include <gtest/gtest.h> |
| 30 #include "FrameTestHelpers.h" | 30 #include "FrameTestHelpers.h" |
| 31 #include "URLTestHelpers.h" | 31 #include "URLTestHelpers.h" |
| 32 #include "WebFrame.h" | 32 #include "WebFrame.h" |
| 33 #include "WebFrameClient.h" | 33 #include "WebFrameClient.h" |
| 34 #include "WebFrameImpl.h" | |
| 35 #include "WebInputEvent.h" | 34 #include "WebInputEvent.h" |
| 36 #include "WebInputEventConversion.h" | 35 #include "WebInputEventConversion.h" |
| 36 #include "WebLocalFrameImpl.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/frame/FrameView.h" | 41 #include "core/frame/FrameView.h" |
| 42 #include "core/page/TouchDisambiguation.h" | 42 #include "core/page/TouchDisambiguation.h" |
| 43 #include "platform/geometry/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" |
| (...skipping 174 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 |