Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: Source/web/RemoteFrameClient.cpp

Issue 573353002: Plumbing toward transitioning remote frame back to a local frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/RemoteFrameClient.cpp
diff --git a/Source/web/RemoteFrameClient.cpp b/Source/web/RemoteFrameClient.cpp
deleted file mode 100644
index ff9d6a1fee986d103d4348c9e8cc5878709b5384..0000000000000000000000000000000000000000
--- a/Source/web/RemoteFrameClient.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-// 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.
-
-#include "config.h"
-#include "web/RemoteFrameClient.h"
-
-#include "platform/weborigin/SecurityOrigin.h"
-#include "web/WebLocalFrameImpl.h"
-#include "web/WebRemoteFrameImpl.h"
-
-namespace blink {
-
-RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame)
- : m_webFrame(webFrame)
-{
-}
-
-Frame* RemoteFrameClient::opener() const
-{
- return toCoreFrame(m_webFrame->opener());
-}
-
-void RemoteFrameClient::setOpener(Frame*)
-{
- // FIXME: Implement.
-}
-
-Frame* RemoteFrameClient::parent() const
-{
- return toCoreFrame(m_webFrame->parent());
-}
-
-Frame* RemoteFrameClient::top() const
-{
- return toCoreFrame(m_webFrame->top());
-}
-
-Frame* RemoteFrameClient::previousSibling() const
-{
- return toCoreFrame(m_webFrame->previousSibling());
-}
-
-Frame* RemoteFrameClient::nextSibling() const
-{
- return toCoreFrame(m_webFrame->nextSibling());
-}
-
-Frame* RemoteFrameClient::firstChild() const
-{
- return toCoreFrame(m_webFrame->firstChild());
-}
-
-Frame* RemoteFrameClient::lastChild() const
-{
- return toCoreFrame(m_webFrame->lastChild());
-}
-
-bool RemoteFrameClient::willCheckAndDispatchMessageEvent(
- SecurityOrigin* target, MessageEvent* event, LocalFrame* sourceFrame) const
-{
- if (m_webFrame->client())
- m_webFrame->client()->postMessageEvent(WebLocalFrameImpl::fromFrame(sourceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event));
- return true;
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698