| 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/RemoteFrameClientImpl.h" | 5 #include "web/RemoteFrameClientImpl.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include "core/events/KeyboardEvent.h" | 8 #include "core/events/KeyboardEvent.h" |
| 9 #include "core/events/MouseEvent.h" | 9 #include "core/events/MouseEvent.h" |
| 10 #include "core/events/WebInputEventConversion.h" |
| 10 #include "core/events/WheelEvent.h" | 11 #include "core/events/WheelEvent.h" |
| 11 #include "core/frame/RemoteFrame.h" | 12 #include "core/frame/RemoteFrame.h" |
| 12 #include "core/frame/RemoteFrameView.h" | 13 #include "core/frame/RemoteFrameView.h" |
| 13 #include "core/frame/WebLocalFrameBase.h" | 14 #include "core/frame/WebLocalFrameBase.h" |
| 14 #include "core/layout/api/LayoutItem.h" | 15 #include "core/layout/api/LayoutItem.h" |
| 15 #include "core/layout/api/LayoutPartItem.h" | 16 #include "core/layout/api/LayoutPartItem.h" |
| 16 #include "platform/exported/WrappedResourceRequest.h" | 17 #include "platform/exported/WrappedResourceRequest.h" |
| 17 #include "platform/geometry/IntRect.h" | 18 #include "platform/geometry/IntRect.h" |
| 18 #include "platform/weborigin/SecurityOrigin.h" | 19 #include "platform/weborigin/SecurityOrigin.h" |
| 19 #include "platform/weborigin/SecurityPolicy.h" | 20 #include "platform/weborigin/SecurityPolicy.h" |
| 20 #include "platform/wtf/PtrUtil.h" | 21 #include "platform/wtf/PtrUtil.h" |
| 21 #include "public/web/WebRemoteFrameClient.h" | 22 #include "public/web/WebRemoteFrameClient.h" |
| 22 #include "web/WebInputEventConversion.h" | |
| 23 #include "web/WebRemoteFrameImpl.h" | 23 #include "web/WebRemoteFrameImpl.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 // Convenience helper for frame tree helpers in FrameClient to reduce the amount | 29 // Convenience helper for frame tree helpers in FrameClient to reduce the amount |
| 30 // of null-checking boilerplate code. Since the frame tree is maintained in the | 30 // of null-checking boilerplate code. Since the frame tree is maintained in the |
| 31 // web/ layer, the frame tree helpers often have to deal with null WebFrames: | 31 // web/ layer, the frame tree helpers often have to deal with null WebFrames: |
| 32 // for example, a frame with no parent will return null for WebFrame::parent(). | 32 // for example, a frame with no parent will return null for WebFrame::parent(). |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 LocalFrame* source) { | 149 LocalFrame* source) { |
| 150 web_frame_->Client()->AdvanceFocus(type, | 150 web_frame_->Client()->AdvanceFocus(type, |
| 151 WebLocalFrameBase::FromFrame(source)); | 151 WebLocalFrameBase::FromFrame(source)); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void RemoteFrameClientImpl::VisibilityChanged(bool visible) { | 154 void RemoteFrameClientImpl::VisibilityChanged(bool visible) { |
| 155 web_frame_->Client()->VisibilityChanged(visible); | 155 web_frame_->Client()->VisibilityChanged(visible); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace blink | 158 } // namespace blink |
| OLD | NEW |