| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "public/web/WebView.h" | 31 #include "public/web/WebView.h" |
| 32 | 32 |
| 33 #include <memory> |
| 33 #include "bindings/core/v8/V8Document.h" | 34 #include "bindings/core/v8/V8Document.h" |
| 34 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
| 35 #include "core/dom/DocumentUserGestureToken.h" | 36 #include "core/dom/DocumentUserGestureToken.h" |
| 36 #include "core/dom/Element.h" | 37 #include "core/dom/Element.h" |
| 37 #include "core/dom/Fullscreen.h" | 38 #include "core/dom/Fullscreen.h" |
| 38 #include "core/editing/FrameSelection.h" | 39 #include "core/editing/FrameSelection.h" |
| 39 #include "core/editing/InputMethodController.h" | 40 #include "core/editing/InputMethodController.h" |
| 40 #include "core/editing/markers/DocumentMarkerController.h" | 41 #include "core/editing/markers/DocumentMarkerController.h" |
| 41 #include "core/frame/EventHandlerRegistry.h" | 42 #include "core/frame/EventHandlerRegistry.h" |
| 42 #include "core/frame/FrameHost.h" | 43 #include "core/frame/FrameHost.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 61 #include "platform/geometry/IntRect.h" | 62 #include "platform/geometry/IntRect.h" |
| 62 #include "platform/geometry/IntSize.h" | 63 #include "platform/geometry/IntSize.h" |
| 63 #include "platform/graphics/Color.h" | 64 #include "platform/graphics/Color.h" |
| 64 #include "platform/graphics/GraphicsContext.h" | 65 #include "platform/graphics/GraphicsContext.h" |
| 65 #include "platform/graphics/paint/SkPictureBuilder.h" | 66 #include "platform/graphics/paint/SkPictureBuilder.h" |
| 66 #include "platform/scroll/ScrollTypes.h" | 67 #include "platform/scroll/ScrollTypes.h" |
| 67 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 68 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
| 68 #include "platform/testing/URLTestHelpers.h" | 69 #include "platform/testing/URLTestHelpers.h" |
| 69 #include "platform/testing/UnitTestHelpers.h" | 70 #include "platform/testing/UnitTestHelpers.h" |
| 70 #include "public/platform/Platform.h" | 71 #include "public/platform/Platform.h" |
| 72 #include "public/platform/WebCache.h" |
| 71 #include "public/platform/WebDisplayMode.h" | 73 #include "public/platform/WebDisplayMode.h" |
| 72 #include "public/platform/WebDragData.h" | 74 #include "public/platform/WebDragData.h" |
| 73 #include "public/platform/WebDragOperation.h" | 75 #include "public/platform/WebDragOperation.h" |
| 74 #include "public/platform/WebFloatPoint.h" | 76 #include "public/platform/WebFloatPoint.h" |
| 75 #include "public/platform/WebInputEvent.h" | 77 #include "public/platform/WebInputEvent.h" |
| 76 #include "public/platform/WebKeyboardEvent.h" | 78 #include "public/platform/WebKeyboardEvent.h" |
| 77 #include "public/platform/WebLayerTreeView.h" | 79 #include "public/platform/WebLayerTreeView.h" |
| 78 #include "public/platform/WebMockClipboard.h" | 80 #include "public/platform/WebMockClipboard.h" |
| 79 #include "public/platform/WebSize.h" | 81 #include "public/platform/WebSize.h" |
| 80 #include "public/platform/WebThread.h" | 82 #include "public/platform/WebThread.h" |
| 81 #include "public/platform/WebURLLoaderMockFactory.h" | 83 #include "public/platform/WebURLLoaderMockFactory.h" |
| 82 #include "public/web/WebAutofillClient.h" | 84 #include "public/web/WebAutofillClient.h" |
| 83 #include "public/web/WebCache.h" | |
| 84 #include "public/web/WebDateTimeChooserCompletion.h" | 85 #include "public/web/WebDateTimeChooserCompletion.h" |
| 85 #include "public/web/WebDeviceEmulationParams.h" | 86 #include "public/web/WebDeviceEmulationParams.h" |
| 86 #include "public/web/WebDocument.h" | 87 #include "public/web/WebDocument.h" |
| 87 #include "public/web/WebElement.h" | 88 #include "public/web/WebElement.h" |
| 88 #include "public/web/WebFrame.h" | 89 #include "public/web/WebFrame.h" |
| 89 #include "public/web/WebFrameClient.h" | 90 #include "public/web/WebFrameClient.h" |
| 90 #include "public/web/WebFrameContentDumper.h" | 91 #include "public/web/WebFrameContentDumper.h" |
| 91 #include "public/web/WebHitTestResult.h" | 92 #include "public/web/WebHitTestResult.h" |
| 92 #include "public/web/WebInputMethodController.h" | 93 #include "public/web/WebInputMethodController.h" |
| 93 #include "public/web/WebPrintParams.h" | 94 #include "public/web/WebPrintParams.h" |
| 94 #include "public/web/WebScriptSource.h" | 95 #include "public/web/WebScriptSource.h" |
| 95 #include "public/web/WebSettings.h" | 96 #include "public/web/WebSettings.h" |
| 96 #include "public/web/WebTreeScopeType.h" | 97 #include "public/web/WebTreeScopeType.h" |
| 97 #include "public/web/WebViewClient.h" | 98 #include "public/web/WebViewClient.h" |
| 98 #include "public/web/WebWidget.h" | 99 #include "public/web/WebWidget.h" |
| 99 #include "public/web/WebWidgetClient.h" | 100 #include "public/web/WebWidgetClient.h" |
| 100 #include "testing/gtest/include/gtest/gtest.h" | 101 #include "testing/gtest/include/gtest/gtest.h" |
| 101 #include "third_party/skia/include/core/SkBitmap.h" | 102 #include "third_party/skia/include/core/SkBitmap.h" |
| 102 #include "third_party/skia/include/core/SkCanvas.h" | 103 #include "third_party/skia/include/core/SkCanvas.h" |
| 103 #include "web/DevToolsEmulator.h" | 104 #include "web/DevToolsEmulator.h" |
| 104 #include "web/WebInputMethodControllerImpl.h" | 105 #include "web/WebInputMethodControllerImpl.h" |
| 105 #include "web/WebLocalFrameImpl.h" | 106 #include "web/WebLocalFrameImpl.h" |
| 106 #include "web/WebSettingsImpl.h" | 107 #include "web/WebSettingsImpl.h" |
| 107 #include "web/WebViewImpl.h" | 108 #include "web/WebViewImpl.h" |
| 108 #include "web/tests/FrameTestHelpers.h" | 109 #include "web/tests/FrameTestHelpers.h" |
| 109 #include "wtf/PtrUtil.h" | 110 #include "wtf/PtrUtil.h" |
| 110 #include <memory> | |
| 111 | 111 |
| 112 #if OS(MACOSX) | 112 #if OS(MACOSX) |
| 113 #include "public/web/mac/WebSubstringUtil.h" | 113 #include "public/web/mac/WebSubstringUtil.h" |
| 114 #endif | 114 #endif |
| 115 | 115 |
| 116 using blink::FrameTestHelpers::loadFrame; | 116 using blink::FrameTestHelpers::loadFrame; |
| 117 using blink::URLTestHelpers::toKURL; | 117 using blink::URLTestHelpers::toKURL; |
| 118 using blink::URLTestHelpers::registerMockedURLLoad; | 118 using blink::URLTestHelpers::registerMockedURLLoad; |
| 119 using blink::testing::runPendingTasks; | 119 using blink::testing::runPendingTasks; |
| 120 | 120 |
| (...skipping 4085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4206 EXPECT_EQ(expectedWidth, vwElement->offsetWidth()); | 4206 EXPECT_EQ(expectedWidth, vwElement->offsetWidth()); |
| 4207 EXPECT_EQ(expectedHeight, vwElement->offsetHeight()); | 4207 EXPECT_EQ(expectedHeight, vwElement->offsetHeight()); |
| 4208 | 4208 |
| 4209 webView->resize(WebSize(800, 600)); | 4209 webView->resize(WebSize(800, 600)); |
| 4210 frame->printEnd(); | 4210 frame->printEnd(); |
| 4211 | 4211 |
| 4212 EXPECT_EQ(800, vwElement->offsetWidth()); | 4212 EXPECT_EQ(800, vwElement->offsetWidth()); |
| 4213 } | 4213 } |
| 4214 | 4214 |
| 4215 } // namespace blink | 4215 } // namespace blink |
| OLD | NEW |