summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/web/RemoteFrameClientImpl.h
blob: 2dcc200c97b798e7e1ffee24b68b1c1d1c3c6274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright 2014 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.

#ifndef RemoteFrameClientImpl_h
#define RemoteFrameClientImpl_h

#include "core/frame/RemoteFrameClient.h"

namespace blink {
class WebRemoteFrameImpl;

class RemoteFrameClientImpl final : public RemoteFrameClient {
public:
    static PassOwnPtrWillBeRawPtr<RemoteFrameClientImpl> create(WebRemoteFrameImpl*);

    DECLARE_VIRTUAL_TRACE();

    // FrameClient overrides:
    bool inShadowTree() const override;
    void willBeDetached() override;
    void detached(FrameDetachType) override;
    Frame* opener() const override;
    void setOpener(Frame*) override;
    Frame* parent() const override;
    Frame* top() const override;
    Frame* previousSibling() const override;
    Frame* nextSibling() const override;
    Frame* firstChild() const override;
    Frame* lastChild() const override;
    bool willCheckAndDispatchMessageEvent(SecurityOrigin*, MessageEvent*, LocalFrame*) const override;
    void frameFocused() const override;

    // RemoteFrameClient overrides:
    void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry) override;
    void reload(FrameLoadType, ClientRedirectPolicy) override;
    unsigned backForwardLength() override;
    void forwardInputEvent(Event*) override;
    void frameRectsChanged(const IntRect& frameRect) override;
    void advanceFocus(WebFocusType, LocalFrame*) override;
    void visibilityChanged(bool visible) override;

    WebRemoteFrameImpl* webFrame() const { return m_webFrame; }

private:
    explicit RemoteFrameClientImpl(WebRemoteFrameImpl*);

    RawPtrWillBeMember<WebRemoteFrameImpl> m_webFrame;
};

} // namespace blink

#endif // RemoteFrameClientImpl_h