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

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: Needle threaded all the way. Created 3 years, 12 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 "web/api/Element.h"
9 #include "core/frame/LocalFrame.h"
10 #include "platform/heap/Handle.h"
11
12 namespace web {
13 namespace api {
14
15 class Frame : public blink::GarbageCollected<Frame> {
dglazkov 2016/12/22 16:46:50 Frame will be hand-written and act as the conduit
16 public:
17 Frame(blink::LocalFrame* frame) : frame_(frame) {}
18 ~Frame() {}
19
20 using Visitor = blink::Visitor;
21 using InlinedGlobalMarkingVisitor = blink::InlinedGlobalMarkingVisitor;
22 DEFINE_INLINE_TRACE() { visitor->trace(frame_); }
23
24 Element* GetFunkyElement() const {
25 return new Element(frame_->pagePopupOwner());
26 }
27
28 private:
29 blink::Member<blink::LocalFrame> frame_;
30 };
31
32 } // namespace api
33 } // namespace web
34
35 #endif // WEB_API_FRAME_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698