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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEB_API_FRAME_H
6 #define WEB_API_FRAME_H
7
8 #include "core/frame/LocalFrame.h"
9 #include "platform/heap/Handle.h"
10 #include "web/api/document.h"
11 #include "web/api/element.h"
12
13 namespace web {
14
15 class Frame : public blink::GarbageCollected<Frame> {
16 public:
17 explicit Frame(blink::LocalFrame* frame) : frame_(frame) {}
18 ~Frame() {}
19
20 DEFINE_INLINE_TRACE() { visitor->trace(frame_); }
21
22 Element* GetFunkyElement() const {
23 return Element::Create(frame_->pagePopupOwner());
24 }
25
26 Document* GetDocument() const { return Document::Create(frame_->document()); }
27
28 private:
29 blink::Member<blink::LocalFrame> frame_;
30 };
31
32 } // namespace web
33
34 #endif // WEB_API_FRAME_H
OLDNEW
« 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