diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/web/RemoteFrameClient.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/web/RemoteFrameClient.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/web/RemoteFrameClient.h b/chromium/third_party/WebKit/Source/web/RemoteFrameClient.h new file mode 100644 index 00000000000..888a106073d --- /dev/null +++ b/chromium/third_party/WebKit/Source/web/RemoteFrameClient.h @@ -0,0 +1,37 @@ +// 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 RemoteFrameClient_h +#define RemoteFrameClient_h + +#include "core/frame/FrameClient.h" + +namespace blink { + +class WebRemoteFrameImpl; + +class RemoteFrameClient : public WebCore::FrameClient { +public: + explicit RemoteFrameClient(WebRemoteFrameImpl*); + + // FrameClient overrides: + virtual WebCore::Frame* opener() const OVERRIDE; + virtual void setOpener(WebCore::Frame*) OVERRIDE; + + virtual WebCore::Frame* parent() const OVERRIDE; + virtual WebCore::Frame* top() const OVERRIDE; + virtual WebCore::Frame* previousSibling() const OVERRIDE; + virtual WebCore::Frame* nextSibling() const OVERRIDE; + virtual WebCore::Frame* firstChild() const OVERRIDE; + virtual WebCore::Frame* lastChild() const OVERRIDE; + + WebRemoteFrameImpl* webFrame() const { return m_webFrame; } + +private: + WebRemoteFrameImpl* m_webFrame; +}; + +} // namespace blink + +#endif // RemoteFrameClient_h |