Chromium Code Reviews| Index: third_party/WebKit/Source/web/api/frame.h |
| diff --git a/third_party/WebKit/Source/web/api/frame.h b/third_party/WebKit/Source/web/api/frame.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..33454535440eb65fe63af2cce5a28035d5652216 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/web/api/frame.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2017 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 WEB_API_FRAME_H |
| +#define WEB_API_FRAME_H |
| + |
| +#include "web/api/Element.h" |
| +#include "core/frame/LocalFrame.h" |
| +#include "platform/heap/Handle.h" |
| + |
| +namespace web { |
| +namespace api { |
| + |
| +class Frame : public blink::GarbageCollected<Frame> { |
|
dglazkov
2016/12/22 16:46:50
Frame will be hand-written and act as the conduit
|
| + public: |
| + Frame(blink::LocalFrame* frame) : frame_(frame) {} |
| + ~Frame() {} |
| + |
| + using Visitor = blink::Visitor; |
| + using InlinedGlobalMarkingVisitor = blink::InlinedGlobalMarkingVisitor; |
| + DEFINE_INLINE_TRACE() { visitor->trace(frame_); } |
| + |
| + Element* GetFunkyElement() const { |
| + return new Element(frame_->pagePopupOwner()); |
| + } |
| + |
| + private: |
| + blink::Member<blink::LocalFrame> frame_; |
| +}; |
| + |
| +} // namespace api |
| +} // namespace web |
| + |
| +#endif // WEB_API_FRAME_H |