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

Unified Diff: third_party/WebKit/Source/web/api/frame.h

Issue 2591803002: NOT FOR LANDING: Thread the needle through all webmodules.
Patch Set: AddEventListener sketched out. Created 3 years, 10 months 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 | « third_party/WebKit/Source/web/agent/sample/sample_agent.cc ('k') | third_party/WebKit/Source/wtf/Variant.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/api/frame.h
diff --git a/third_party/WebKit/Source/web/api/frame.h b/third_party/WebKit/Source/web/api/frame.h
new file mode 100644
index 0000000000000000000000000000000000000000..c99edad243918e2aad473c411094f629388f34db
--- /dev/null
+++ b/third_party/WebKit/Source/web/api/frame.h
@@ -0,0 +1,34 @@
+// Copyright 2017 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 WEB_API_FRAME_H
+#define WEB_API_FRAME_H
+
+#include "core/frame/LocalFrame.h"
+#include "platform/heap/Handle.h"
+#include "web/api/document.h"
+#include "web/api/element.h"
+
+namespace web {
+
+class Frame : public blink::GarbageCollected<Frame> {
+ public:
+ explicit Frame(blink::LocalFrame* frame) : frame_(frame) {}
+ ~Frame() {}
+
+ DEFINE_INLINE_TRACE() { visitor->trace(frame_); }
+
+ Element* GetFunkyElement() const {
+ return Element::Create(frame_->pagePopupOwner());
+ }
+
+ Document* GetDocument() const { return Document::Create(frame_->document()); }
+
+ private:
+ blink::Member<blink::LocalFrame> frame_;
+};
+
+} // namespace web
+
+#endif // WEB_API_FRAME_H
« no previous file with comments | « third_party/WebKit/Source/web/agent/sample/sample_agent.cc ('k') | third_party/WebKit/Source/wtf/Variant.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698