Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: sky/engine/core/html/HTMLIFrameElement.h

Issue 682413006: Add a separate call to initialize the bounds for a sky <iframe> element. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: indent Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/BUILD.gn ('k') | sky/engine/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « sky/engine/core/BUILD.gn ('k') | sky/engine/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698