| 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 13 matching lines...) Expand all Loading... |
| 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> | 33 #include <stdarg.h> |
| 34 #include <v8.h> | 34 |
| 35 #include <map> | 35 #include <map> |
| 36 #include <memory> | 36 #include <memory> |
| 37 |
| 37 #include "SkBitmap.h" | 38 #include "SkBitmap.h" |
| 38 #include "SkCanvas.h" | 39 #include "SkCanvas.h" |
| 39 #include "bindings/core/v8/SerializedScriptValueFactory.h" | 40 #include "bindings/core/v8/SerializedScriptValueFactory.h" |
| 40 #include "bindings/core/v8/V8Node.h" | 41 #include "bindings/core/v8/V8Node.h" |
| 41 #include "bindings/core/v8/serialization/V8ScriptValueSerializer.h" | 42 #include "bindings/core/v8/serialization/V8ScriptValueSerializer.h" |
| 42 #include "core/clipboard/DataTransfer.h" | 43 #include "core/clipboard/DataTransfer.h" |
| 43 #include "core/css/StyleSheetContents.h" | 44 #include "core/css/StyleSheetContents.h" |
| 44 #include "core/css/resolver/StyleResolver.h" | 45 #include "core/css/resolver/StyleResolver.h" |
| 45 #include "core/css/resolver/ViewportStyleResolver.h" | 46 #include "core/css/resolver/ViewportStyleResolver.h" |
| 46 #include "core/dom/Document.h" | 47 #include "core/dom/Document.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 #include "public/web/WebSearchableFormData.h" | 134 #include "public/web/WebSearchableFormData.h" |
| 134 #include "public/web/WebSecurityPolicy.h" | 135 #include "public/web/WebSecurityPolicy.h" |
| 135 #include "public/web/WebSelection.h" | 136 #include "public/web/WebSelection.h" |
| 136 #include "public/web/WebSettings.h" | 137 #include "public/web/WebSettings.h" |
| 137 #include "public/web/WebSpellCheckClient.h" | 138 #include "public/web/WebSpellCheckClient.h" |
| 138 #include "public/web/WebTextCheckingCompletion.h" | 139 #include "public/web/WebTextCheckingCompletion.h" |
| 139 #include "public/web/WebTextCheckingResult.h" | 140 #include "public/web/WebTextCheckingResult.h" |
| 140 #include "public/web/WebViewClient.h" | 141 #include "public/web/WebViewClient.h" |
| 141 #include "testing/gmock/include/gmock/gmock.h" | 142 #include "testing/gmock/include/gmock/gmock.h" |
| 142 #include "testing/gtest/include/gtest/gtest.h" | 143 #include "testing/gtest/include/gtest/gtest.h" |
| 144 #include "v8/include/v8.h" |
| 143 #include "web/TextFinder.h" | 145 #include "web/TextFinder.h" |
| 144 #include "web/WebLocalFrameImpl.h" | 146 #include "web/WebLocalFrameImpl.h" |
| 145 #include "web/WebRemoteFrameImpl.h" | 147 #include "web/WebRemoteFrameImpl.h" |
| 146 #include "web/WebViewImpl.h" | 148 #include "web/WebViewImpl.h" |
| 147 #include "web/tests/FrameTestHelpers.h" | 149 #include "web/tests/FrameTestHelpers.h" |
| 148 #include "wtf/Forward.h" | 150 #include "wtf/Forward.h" |
| 149 #include "wtf/PtrUtil.h" | 151 #include "wtf/PtrUtil.h" |
| 150 #include "wtf/dtoa/utils.h" | 152 #include "wtf/dtoa/utils.h" |
| 151 | 153 |
| 152 using blink::URLTestHelpers::toKURL; | 154 using blink::URLTestHelpers::toKURL; |
| (...skipping 11208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11361 FrameTestHelpers::WebViewHelper openerHelper; | 11363 FrameTestHelpers::WebViewHelper openerHelper; |
| 11362 openerHelper.initialize(false, nullptr, &openerWebViewClient); | 11364 openerHelper.initialize(false, nullptr, &openerWebViewClient); |
| 11363 FrameTestHelpers::WebViewHelper helper; | 11365 FrameTestHelpers::WebViewHelper helper; |
| 11364 helper.initializeWithOpener(openerHelper.webView()->mainFrame()); | 11366 helper.initializeWithOpener(openerHelper.webView()->mainFrame()); |
| 11365 | 11367 |
| 11366 openerHelper.reset(); | 11368 openerHelper.reset(); |
| 11367 EXPECT_EQ(nullptr, helper.webView()->mainFrameImpl()->opener()); | 11369 EXPECT_EQ(nullptr, helper.webView()->mainFrameImpl()->opener()); |
| 11368 } | 11370 } |
| 11369 | 11371 |
| 11370 } // namespace blink | 11372 } // namespace blink |
| OLD | NEW |