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" |
10 #include "core/page/Page.h" | 11 #include "core/page/Page.h" |
11 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
12 #include "public/platform/WebFloatRect.h" | 13 #include "public/platform/WebFloatRect.h" |
13 #include "public/platform/WebRect.h" | 14 #include "public/platform/WebRect.h" |
14 #include "public/web/WebDocument.h" | 15 #include "public/web/WebDocument.h" |
15 #include "public/web/WebFrameOwnerProperties.h" | 16 #include "public/web/WebFrameOwnerProperties.h" |
16 #include "public/web/WebPerformance.h" | 17 #include "public/web/WebPerformance.h" |
17 #include "public/web/WebRange.h" | 18 #include "public/web/WebRange.h" |
18 #include "public/web/WebTreeScopeType.h" | 19 #include "public/web/WebTreeScopeType.h" |
19 #include "web/RemoteBridgeFrameOwner.h" | 20 #include "web/RemoteBridgeFrameOwner.h" |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 void WebRemoteFrameImpl::didStopLoading() | 803 void WebRemoteFrameImpl::didStopLoading() |
803 { | 804 { |
804 frame()->setIsLoading(false); | 805 frame()->setIsLoading(false); |
805 if (parent() && parent()->isWebLocalFrame()) { | 806 if (parent() && parent()->isWebLocalFrame()) { |
806 WebLocalFrameImpl* parentFrame = | 807 WebLocalFrameImpl* parentFrame = |
807 toWebLocalFrameImpl(parent()->toWebLocalFrame()); | 808 toWebLocalFrameImpl(parent()->toWebLocalFrame()); |
808 parentFrame->frame()->loader().checkCompleted(); | 809 parentFrame->frame()->loader().checkCompleted(); |
809 } | 810 } |
810 } | 811 } |
811 | 812 |
| 813 bool WebRemoteFrameImpl::isIgnoredForHitTest() const |
| 814 { |
| 815 HTMLFrameOwnerElement* owner = frame()->deprecatedLocalOwner(); |
| 816 return owner ? owner->layoutObject()->style()->pointerEvents() == PE_NONE :
false; |
| 817 } |
| 818 |
812 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, WebRemoteFrameCli
ent* client) | 819 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, WebRemoteFrameCli
ent* client) |
813 : WebRemoteFrame(scope) | 820 : WebRemoteFrame(scope) |
814 , m_frameClient(RemoteFrameClientImpl::create(this)) | 821 , m_frameClient(RemoteFrameClientImpl::create(this)) |
815 , m_client(client) | 822 , m_client(client) |
816 #if ENABLE(OILPAN) | 823 #if ENABLE(OILPAN) |
817 , m_selfKeepAlive(this) | 824 , m_selfKeepAlive(this) |
818 #endif | 825 #endif |
819 { | 826 { |
820 } | 827 } |
821 | 828 |
822 } // namespace blink | 829 } // namespace blink |
OLD | NEW |