| 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 "core/frame/LocalFrame.h" |
| 9 #include "platform/heap/Handle.h" |
| 10 #include "web/api/document.h" |
| 11 #include "web/api/element.h" |
| 12 |
| 13 namespace web { |
| 14 |
| 15 class Frame : public blink::GarbageCollected<Frame> { |
| 16 public: |
| 17 explicit Frame(blink::LocalFrame* frame) : frame_(frame) {} |
| 18 ~Frame() {} |
| 19 |
| 20 DEFINE_INLINE_TRACE() { visitor->trace(frame_); } |
| 21 |
| 22 Element* GetFunkyElement() const { |
| 23 return Element::Create(frame_->pagePopupOwner()); |
| 24 } |
| 25 |
| 26 Document* GetDocument() const { return Document::Create(frame_->document()); } |
| 27 |
| 28 private: |
| 29 blink::Member<blink::LocalFrame> frame_; |
| 30 }; |
| 31 |
| 32 } // namespace web |
| 33 |
| 34 #endif // WEB_API_FRAME_H |
| OLD | NEW |