OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "web/WebRemoteFrameImpl.h" | 5 #include "web/WebRemoteFrameImpl.h" |
6 | 6 |
7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
8 #include "core/frame/Settings.h" | 8 #include "core/frame/Settings.h" |
9 #include "core/html/HTMLFrameOwnerElement.h" | 9 #include "core/html/HTMLFrameOwnerElement.h" |
10 #include "core/layout/LayoutObject.h" | |
11 #include "core/page/Page.h" | 10 #include "core/page/Page.h" |
12 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
13 #include "public/platform/WebFloatRect.h" | 12 #include "public/platform/WebFloatRect.h" |
14 #include "public/platform/WebRect.h" | 13 #include "public/platform/WebRect.h" |
15 #include "public/web/WebDocument.h" | 14 #include "public/web/WebDocument.h" |
16 #include "public/web/WebFrameOwnerProperties.h" | 15 #include "public/web/WebFrameOwnerProperties.h" |
17 #include "public/web/WebPerformance.h" | 16 #include "public/web/WebPerformance.h" |
18 #include "public/web/WebRange.h" | 17 #include "public/web/WebRange.h" |
19 #include "public/web/WebTreeScopeType.h" | 18 #include "public/web/WebTreeScopeType.h" |
20 #include "web/RemoteBridgeFrameOwner.h" | 19 #include "web/RemoteBridgeFrameOwner.h" |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 void WebRemoteFrameImpl::didStopLoading() | 802 void WebRemoteFrameImpl::didStopLoading() |
804 { | 803 { |
805 frame()->setIsLoading(false); | 804 frame()->setIsLoading(false); |
806 if (parent() && parent()->isWebLocalFrame()) { | 805 if (parent() && parent()->isWebLocalFrame()) { |
807 WebLocalFrameImpl* parentFrame = | 806 WebLocalFrameImpl* parentFrame = |
808 toWebLocalFrameImpl(parent()->toWebLocalFrame()); | 807 toWebLocalFrameImpl(parent()->toWebLocalFrame()); |
809 parentFrame->frame()->loader().checkCompleted(); | 808 parentFrame->frame()->loader().checkCompleted(); |
810 } | 809 } |
811 } | 810 } |
812 | 811 |
813 bool WebRemoteFrameImpl::isIgnoredForHitTest() const | |
814 { | |
815 HTMLFrameOwnerElement* owner = frame()->deprecatedLocalOwner(); | |
816 return owner ? owner->layoutObject()->style()->pointerEvents() == PE_NONE :
false; | |
817 } | |
818 | |
819 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, WebRemoteFrameCli
ent* client) | 812 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, WebRemoteFrameCli
ent* client) |
820 : WebRemoteFrame(scope) | 813 : WebRemoteFrame(scope) |
821 , m_frameClient(RemoteFrameClientImpl::create(this)) | 814 , m_frameClient(RemoteFrameClientImpl::create(this)) |
822 , m_client(client) | 815 , m_client(client) |
823 #if ENABLE(OILPAN) | 816 #if ENABLE(OILPAN) |
824 , m_selfKeepAlive(this) | 817 , m_selfKeepAlive(this) |
825 #endif | 818 #endif |
826 { | 819 { |
827 } | 820 } |
828 | 821 |
829 } // namespace blink | 822 } // namespace blink |
OLD | NEW |