Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEB_API_FRAME_H | |
| 6 #define WEB_API_FRAME_H | |
| 7 | |
| 8 #include "web/api/Element.h" | |
| 9 #include "core/frame/LocalFrame.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 | |
| 12 namespace web { | |
| 13 namespace api { | |
| 14 | |
| 15 class Frame : public blink::GarbageCollected<Frame> { | |
|
dglazkov
2016/12/22 16:46:50
Frame will be hand-written and act as the conduit
| |
| 16 public: | |
| 17 Frame(blink::LocalFrame* frame) : frame_(frame) {} | |
| 18 ~Frame() {} | |
| 19 | |
| 20 using Visitor = blink::Visitor; | |
| 21 using InlinedGlobalMarkingVisitor = blink::InlinedGlobalMarkingVisitor; | |
| 22 DEFINE_INLINE_TRACE() { visitor->trace(frame_); } | |
| 23 | |
| 24 Element* GetFunkyElement() const { | |
| 25 return new Element(frame_->pagePopupOwner()); | |
| 26 } | |
| 27 | |
| 28 private: | |
| 29 blink::Member<blink::LocalFrame> frame_; | |
| 30 }; | |
| 31 | |
| 32 } // namespace api | |
| 33 } // namespace web | |
| 34 | |
| 35 #endif // WEB_API_FRAME_H | |
| OLD | NEW |