| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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/WebFrame.h" | 31 #include "public/web/WebFrame.h" |
| 32 | 32 |
| 33 #include <stdarg.h> |
| 34 #include <v8.h> |
| 35 #include <map> |
| 36 #include <memory> |
| 33 #include "SkBitmap.h" | 37 #include "SkBitmap.h" |
| 34 #include "SkCanvas.h" | 38 #include "SkCanvas.h" |
| 35 #include "bindings/core/v8/SerializedScriptValueFactory.h" | 39 #include "bindings/core/v8/SerializedScriptValueFactory.h" |
| 36 #include "bindings/core/v8/V8Node.h" | 40 #include "bindings/core/v8/V8Node.h" |
| 37 #include "core/clipboard/DataTransfer.h" | 41 #include "core/clipboard/DataTransfer.h" |
| 38 #include "core/css/StyleSheetContents.h" | 42 #include "core/css/StyleSheetContents.h" |
| 39 #include "core/css/resolver/StyleResolver.h" | 43 #include "core/css/resolver/StyleResolver.h" |
| 40 #include "core/css/resolver/ViewportStyleResolver.h" | 44 #include "core/css/resolver/ViewportStyleResolver.h" |
| 41 #include "core/dom/Document.h" | 45 #include "core/dom/Document.h" |
| 42 #include "core/dom/DocumentUserGestureToken.h" | 46 #include "core/dom/DocumentUserGestureToken.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 #include "platform/scroll/ScrollbarTheme.h" | 96 #include "platform/scroll/ScrollbarTheme.h" |
| 93 #include "platform/scroll/ScrollbarThemeMock.h" | 97 #include "platform/scroll/ScrollbarThemeMock.h" |
| 94 #include "platform/scroll/ScrollbarThemeOverlayMock.h" | 98 #include "platform/scroll/ScrollbarThemeOverlayMock.h" |
| 95 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 99 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
| 96 #include "platform/testing/URLTestHelpers.h" | 100 #include "platform/testing/URLTestHelpers.h" |
| 97 #include "platform/testing/UnitTestHelpers.h" | 101 #include "platform/testing/UnitTestHelpers.h" |
| 98 #include "platform/weborigin/KURLHash.h" | 102 #include "platform/weborigin/KURLHash.h" |
| 99 #include "platform/weborigin/SchemeRegistry.h" | 103 #include "platform/weborigin/SchemeRegistry.h" |
| 100 #include "platform/weborigin/SecurityOrigin.h" | 104 #include "platform/weborigin/SecurityOrigin.h" |
| 101 #include "public/platform/Platform.h" | 105 #include "public/platform/Platform.h" |
| 106 #include "public/platform/WebCache.h" |
| 102 #include "public/platform/WebCachePolicy.h" | 107 #include "public/platform/WebCachePolicy.h" |
| 103 #include "public/platform/WebClipboard.h" | 108 #include "public/platform/WebClipboard.h" |
| 104 #include "public/platform/WebFloatRect.h" | 109 #include "public/platform/WebFloatRect.h" |
| 105 #include "public/platform/WebMockClipboard.h" | 110 #include "public/platform/WebMockClipboard.h" |
| 106 #include "public/platform/WebSecurityOrigin.h" | 111 #include "public/platform/WebSecurityOrigin.h" |
| 107 #include "public/platform/WebThread.h" | 112 #include "public/platform/WebThread.h" |
| 108 #include "public/platform/WebURL.h" | 113 #include "public/platform/WebURL.h" |
| 109 #include "public/platform/WebURLLoaderClient.h" | 114 #include "public/platform/WebURLLoaderClient.h" |
| 110 #include "public/platform/WebURLLoaderMockFactory.h" | 115 #include "public/platform/WebURLLoaderMockFactory.h" |
| 111 #include "public/platform/WebURLResponse.h" | 116 #include "public/platform/WebURLResponse.h" |
| 112 #include "public/web/WebCache.h" | |
| 113 #include "public/web/WebConsoleMessage.h" | 117 #include "public/web/WebConsoleMessage.h" |
| 114 #include "public/web/WebDataSource.h" | 118 #include "public/web/WebDataSource.h" |
| 115 #include "public/web/WebDeviceEmulationParams.h" | 119 #include "public/web/WebDeviceEmulationParams.h" |
| 116 #include "public/web/WebDocument.h" | 120 #include "public/web/WebDocument.h" |
| 117 #include "public/web/WebFindOptions.h" | 121 #include "public/web/WebFindOptions.h" |
| 118 #include "public/web/WebFormElement.h" | 122 #include "public/web/WebFormElement.h" |
| 119 #include "public/web/WebFrameClient.h" | 123 #include "public/web/WebFrameClient.h" |
| 120 #include "public/web/WebFrameContentDumper.h" | 124 #include "public/web/WebFrameContentDumper.h" |
| 121 #include "public/web/WebFrameWidget.h" | 125 #include "public/web/WebFrameWidget.h" |
| 122 #include "public/web/WebHistoryItem.h" | 126 #include "public/web/WebHistoryItem.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 136 #include "testing/gmock/include/gmock/gmock.h" | 140 #include "testing/gmock/include/gmock/gmock.h" |
| 137 #include "testing/gtest/include/gtest/gtest.h" | 141 #include "testing/gtest/include/gtest/gtest.h" |
| 138 #include "web/TextFinder.h" | 142 #include "web/TextFinder.h" |
| 139 #include "web/WebLocalFrameImpl.h" | 143 #include "web/WebLocalFrameImpl.h" |
| 140 #include "web/WebRemoteFrameImpl.h" | 144 #include "web/WebRemoteFrameImpl.h" |
| 141 #include "web/WebViewImpl.h" | 145 #include "web/WebViewImpl.h" |
| 142 #include "web/tests/FrameTestHelpers.h" | 146 #include "web/tests/FrameTestHelpers.h" |
| 143 #include "wtf/Forward.h" | 147 #include "wtf/Forward.h" |
| 144 #include "wtf/PtrUtil.h" | 148 #include "wtf/PtrUtil.h" |
| 145 #include "wtf/dtoa/utils.h" | 149 #include "wtf/dtoa/utils.h" |
| 146 #include <map> | |
| 147 #include <memory> | |
| 148 #include <stdarg.h> | |
| 149 #include <v8.h> | |
| 150 | 150 |
| 151 using blink::URLTestHelpers::toKURL; | 151 using blink::URLTestHelpers::toKURL; |
| 152 using blink::testing::runPendingTasks; | 152 using blink::testing::runPendingTasks; |
| 153 using testing::ElementsAre; | 153 using testing::ElementsAre; |
| 154 using testing::Mock; | 154 using testing::Mock; |
| 155 using testing::_; | 155 using testing::_; |
| 156 | 156 |
| 157 namespace blink { | 157 namespace blink { |
| 158 | 158 |
| 159 ::std::ostream& operator<<(::std::ostream& os, const WebFloatSize& size) { | 159 ::std::ostream& operator<<(::std::ostream& os, const WebFloatSize& size) { |
| (...skipping 11177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11337 | 11337 |
| 11338 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached()); | 11338 EXPECT_TRUE(mainFrameClient.childClient().didCallFrameDetached()); |
| 11339 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading()); | 11339 EXPECT_TRUE(mainFrameClient.childClient().didCallDidStopLoading()); |
| 11340 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad()); | 11340 EXPECT_TRUE(mainFrameClient.childClient().didCallDidFinishDocumentLoad()); |
| 11341 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents()); | 11341 EXPECT_TRUE(mainFrameClient.childClient().didCallDidHandleOnloadEvents()); |
| 11342 | 11342 |
| 11343 webViewHelper.reset(); | 11343 webViewHelper.reset(); |
| 11344 } | 11344 } |
| 11345 | 11345 |
| 11346 } // namespace blink | 11346 } // namespace blink |
| OLD | NEW |