| Index: sky/engine/core/html/HTMLIFrameElement.h
|
| diff --git a/sky/engine/core/html/HTMLIFrameElement.h b/sky/engine/core/html/HTMLIFrameElement.h
|
| index 577f4b1d47699a15791ab825be01850f26b38544..c4ce56e5f0679b8b27739b67e438d49432b776ed 100644
|
| --- a/sky/engine/core/html/HTMLIFrameElement.h
|
| +++ b/sky/engine/core/html/HTMLIFrameElement.h
|
| @@ -9,26 +9,39 @@
|
| #include "core/dom/DOMURLUtils.h"
|
| #include "core/dom/Document.h"
|
| #include "core/html/HTMLElement.h"
|
| +#include "mojo/services/public/cpp/view_manager/view_observer.h"
|
| +#include "wtf/OwnPtr.h"
|
|
|
| namespace blink {
|
|
|
| -class HTMLIFrameElement : public HTMLElement {
|
| +class RemoteFrame;
|
| +
|
| +class HTMLIFrameElement : public HTMLElement,
|
| + public mojo::ViewObserver {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| static PassRefPtr<HTMLIFrameElement> create(Document&);
|
|
|
| virtual ~HTMLIFrameElement();
|
|
|
| + mojo::View* contentView() const { return m_contentView; }
|
| +
|
| private:
|
| explicit HTMLIFrameElement(Document&);
|
|
|
| + // HTMLElement methods:
|
| virtual RenderObject* createRenderer(RenderStyle* style) override;
|
|
|
| virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
|
| virtual void removedFrom(ContainerNode*) override;
|
|
|
| + // ViewObserver methods:
|
| + void OnViewDestroyed(mojo::View* view) override;
|
| +
|
| private:
|
| void createView();
|
| +
|
| + mojo::View* m_contentView;
|
| };
|
|
|
| } // namespace blink
|
|
|