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

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

Issue 708903002: Initial work on a new <view> element backed by a mojo::View. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: more review comments 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
Index: sky/engine/core/html/HTMLIFrameElement.h
diff --git a/sky/engine/core/html/HTMLIFrameElement.h b/sky/engine/core/html/HTMLIFrameElement.h
new file mode 100644
index 0000000000000000000000000000000000000000..2985f931f83361623aebb8285dee18eaa5eefc29
--- /dev/null
+++ b/sky/engine/core/html/HTMLIFrameElement.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef HTMLIFrameElement_h
+#define HTMLIFrameElement_h
+
+#include "core/HTMLNames.h"
+#include "core/dom/DOMURLUtils.h"
+#include "core/dom/Document.h"
+#include "core/html/HTMLElement.h"
+
+namespace blink {
+
+class HTMLIFrameElement : public HTMLElement {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ static PassRefPtr<HTMLIFrameElement> create(Document&);
+
+ virtual ~HTMLIFrameElement();
+
+private:
+ explicit HTMLIFrameElement(Document&);
+
+ virtual RenderObject* createRenderer(RenderStyle* style) override;
+
+ virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
+ virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
+ virtual void removedFrom(ContainerNode*) override;
+
+private:
+ void setLocation(const String&);
+ void openURL();
+
+ AtomicString m_URL;
abarth-chromium 2014/11/07 19:08:29 Is there a reason to store this value?
+};
+
+} // namespace blink
+
+#endif // HTMLIFrameElement_h

Powered by Google App Engine
This is Rietveld 408576698