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

Side by Side Diff: Source/web/WebFrame.cpp

Issue 1132133009: Plumb whether or not a frame is in shadow DOM to the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/RemoteFrameClientImpl.cpp ('k') | Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "public/web/WebFrame.h" 6 #include "public/web/WebFrame.h"
7 7
8 #include "bindings/core/v8/WindowProxyManager.h" 8 #include "bindings/core/v8/WindowProxyManager.h"
9 #include "core/frame/FrameHost.h" 9 #include "core/frame/FrameHost.h"
10 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 WebFrame* WebFrame::fromFrame(Frame* frame) 261 WebFrame* WebFrame::fromFrame(Frame* frame)
262 { 262 {
263 if (!frame) 263 if (!frame)
264 return 0; 264 return 0;
265 265
266 if (frame->isLocalFrame()) 266 if (frame->isLocalFrame())
267 return WebLocalFrameImpl::fromFrame(toLocalFrame(*frame)); 267 return WebLocalFrameImpl::fromFrame(toLocalFrame(*frame));
268 return WebRemoteFrameImpl::fromFrame(toRemoteFrame(*frame)); 268 return WebRemoteFrameImpl::fromFrame(toRemoteFrame(*frame));
269 } 269 }
270 270
271 WebFrame::WebFrame() 271 WebFrame::WebFrame(WebTreeScopeType scope)
272 : m_parent(0) 272 : m_scope(scope)
273 , m_parent(0)
273 , m_previousSibling(0) 274 , m_previousSibling(0)
274 , m_nextSibling(0) 275 , m_nextSibling(0)
275 , m_firstChild(0) 276 , m_firstChild(0)
276 , m_lastChild(0) 277 , m_lastChild(0)
277 , m_opener(0) 278 , m_opener(0)
278 , m_openedFrameTracker(new OpenedFrameTracker) 279 , m_openedFrameTracker(new OpenedFrameTracker)
279 { 280 {
280 } 281 }
281 282
282 WebFrame::~WebFrame() 283 WebFrame::~WebFrame()
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 bool WebFrame::isFrameAlive(VisitorDispatcher visitor, const WebFrame* frame ) { return isFrameAliveImpl(visitor, frame); } \ 334 bool WebFrame::isFrameAlive(VisitorDispatcher visitor, const WebFrame* frame ) { return isFrameAliveImpl(visitor, frame); } \
334 void WebFrame::clearWeakFrames(VisitorDispatcher visitor) { clearWeakFramesI mpl(visitor); } 335 void WebFrame::clearWeakFrames(VisitorDispatcher visitor) { clearWeakFramesI mpl(visitor); }
335 336
336 DEFINE_VISITOR_METHOD(Visitor*) 337 DEFINE_VISITOR_METHOD(Visitor*)
337 DEFINE_VISITOR_METHOD(InlinedGlobalMarkingVisitor) 338 DEFINE_VISITOR_METHOD(InlinedGlobalMarkingVisitor)
338 339
339 #undef DEFINE_VISITOR_METHOD 340 #undef DEFINE_VISITOR_METHOD
340 #endif 341 #endif
341 342
342 } // namespace blink 343 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/RemoteFrameClientImpl.cpp ('k') | Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698