| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef HTMLIFrameElement_h | 5 #ifndef HTMLIFrameElement_h |
| 6 #define HTMLIFrameElement_h | 6 #define HTMLIFrameElement_h |
| 7 | 7 |
| 8 #include "core/HTMLNames.h" | 8 #include "core/HTMLNames.h" |
| 9 #include "core/dom/DOMURLUtils.h" | 9 #include "core/dom/DOMURLUtils.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| 11 #include "core/html/HTMLElement.h" | 11 #include "core/html/HTMLElement.h" |
| 12 #include "wtf/OwnPtr.h" |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 16 class RemoteFrame; |
| 17 |
| 15 class HTMLIFrameElement : public HTMLElement { | 18 class HTMLIFrameElement : public HTMLElement { |
| 16 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 17 public: | 20 public: |
| 18 static PassRefPtr<HTMLIFrameElement> create(Document&); | 21 static PassRefPtr<HTMLIFrameElement> create(Document&); |
| 19 | 22 |
| 20 virtual ~HTMLIFrameElement(); | 23 virtual ~HTMLIFrameElement(); |
| 21 | 24 |
| 25 RemoteFrame* contentFrame() const { return m_contentFrame.get(); } |
| 26 |
| 22 private: | 27 private: |
| 23 explicit HTMLIFrameElement(Document&); | 28 explicit HTMLIFrameElement(Document&); |
| 24 | 29 |
| 25 virtual RenderObject* createRenderer(RenderStyle* style) override; | 30 virtual RenderObject* createRenderer(RenderStyle* style) override; |
| 26 | 31 |
| 27 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 32 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 28 virtual void removedFrom(ContainerNode*) override; | 33 virtual void removedFrom(ContainerNode*) override; |
| 29 | 34 |
| 30 private: | 35 private: |
| 31 void createView(); | 36 void createView(); |
| 37 |
| 38 OwnPtr<RemoteFrame> m_contentFrame; |
| 32 }; | 39 }; |
| 33 | 40 |
| 34 } // namespace blink | 41 } // namespace blink |
| 35 | 42 |
| 36 #endif // HTMLIFrameElement_h | 43 #endif // HTMLIFrameElement_h |
| OLD | NEW |