| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "third_party/blink/renderer/core/testing/fake_remote_frame_host.h" |
| |
| namespace blink { |
| |
| void FakeRemoteFrameHost::Init(blink::AssociatedInterfaceProvider* provider) { |
| provider->OverrideBinderForTesting( |
| mojom::blink::RemoteFrameHost::Name_, |
| base::BindRepeating(&FakeRemoteFrameHost::BindFrameHostReceiver, |
| base::Unretained(this))); |
| } |
| |
| void FakeRemoteFrameHost::SetInheritedEffectiveTouchAction( |
| cc::TouchAction touch_action) {} |
| |
| void FakeRemoteFrameHost::VisibilityChanged( |
| mojom::blink::FrameVisibility visibility) {} |
| |
| void FakeRemoteFrameHost::DidFocusFrame() {} |
| |
| void FakeRemoteFrameHost::BindFrameHostReceiver( |
| mojo::ScopedInterfaceEndpointHandle handle) { |
| receiver_.Bind(mojo::PendingAssociatedReceiver<mojom::blink::RemoteFrameHost>( |
| std::move(handle))); |
| } |
| |
| } // namespace blink |