| 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..c99edad243918e2aad473c411094f629388f34db
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/web/api/frame.h
|
| @@ -0,0 +1,34 @@
|
| +// 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 "core/frame/LocalFrame.h"
|
| +#include "platform/heap/Handle.h"
|
| +#include "web/api/document.h"
|
| +#include "web/api/element.h"
|
| +
|
| +namespace web {
|
| +
|
| +class Frame : public blink::GarbageCollected<Frame> {
|
| + public:
|
| + explicit Frame(blink::LocalFrame* frame) : frame_(frame) {}
|
| + ~Frame() {}
|
| +
|
| + DEFINE_INLINE_TRACE() { visitor->trace(frame_); }
|
| +
|
| + Element* GetFunkyElement() const {
|
| + return Element::Create(frame_->pagePopupOwner());
|
| + }
|
| +
|
| + Document* GetDocument() const { return Document::Create(frame_->document()); }
|
| +
|
| + private:
|
| + blink::Member<blink::LocalFrame> frame_;
|
| +};
|
| +
|
| +} // namespace web
|
| +
|
| +#endif // WEB_API_FRAME_H
|
|
|