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

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

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
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 "public/web/WebFrame.h" 5 #include "public/web/WebFrame.h"
6 6
7 #include "bindings/core/v8/WindowProxyManager.h" 7 #include "bindings/core/v8/WindowProxyManager.h"
8 #include "core/frame/FrameHost.h" 8 #include "core/frame/FrameHost.h"
9 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 FrameOwner* owner = toImplBase()->frame()->owner(); 127 FrameOwner* owner = toImplBase()->frame()->owner();
128 DCHECK(owner); 128 DCHECK(owner);
129 toRemoteFrameOwner(owner)->setSandboxFlags(static_cast<SandboxFlags>(flags)) ; 129 toRemoteFrameOwner(owner)->setSandboxFlags(static_cast<SandboxFlags>(flags)) ;
130 } 130 }
131 131
132 bool WebFrame::shouldEnforceStrictMixedContentChecking() const 132 bool WebFrame::shouldEnforceStrictMixedContentChecking() const
133 { 133 {
134 return toImplBase()->frame()->securityContext()->shouldEnforceStrictMixedCon tentChecking(); 134 return toImplBase()->frame()->securityContext()->shouldEnforceStrictMixedCon tentChecking();
135 } 135 }
136 136
137 void WebFrame::setFrameOwnerProperties(const WebFrameOwnerProperties& properties )
138 {
139 // At the moment, this is only used to replicate frame owner properties
140 // for frames with a remote owner.
141 FrameOwner* owner = toImplBase()->frame()->owner();
dcheng 2016/05/19 22:12:07 Perhaps just make this: RemoteFrameOwner* owner =
alexmos 2016/05/19 22:56:42 Done.
142 DCHECK(owner);
143 toRemoteFrameOwner(owner)->setScrollingMode(properties.scrollingMode);
144 toRemoteFrameOwner(owner)->setMarginWidth(properties.marginWidth);
145 toRemoteFrameOwner(owner)->setMarginHeight(properties.marginHeight);
146 toRemoteFrameOwner(owner)->setAllowFullscreen(properties.allowFullscreen);
147 }
148
137 WebFrame* WebFrame::opener() const 149 WebFrame* WebFrame::opener() const
138 { 150 {
139 return m_opener; 151 return m_opener;
140 } 152 }
141 153
142 void WebFrame::setOpener(WebFrame* opener) 154 void WebFrame::setOpener(WebFrame* opener)
143 { 155 {
144 if (m_opener) 156 if (m_opener)
145 m_opener->m_openedFrameTracker->remove(this); 157 m_opener->m_openedFrameTracker->remove(this);
146 if (opener) 158 if (opener)
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 void WebFrame::traceFrame(VisitorDispatcher visitor, WebFrame* frame) { trac eFrameImpl(visitor, frame); } \ 364 void WebFrame::traceFrame(VisitorDispatcher visitor, WebFrame* frame) { trac eFrameImpl(visitor, frame); } \
353 void WebFrame::traceFrames(VisitorDispatcher visitor, WebFrame* frame) { tra ceFramesImpl(visitor, frame); } \ 365 void WebFrame::traceFrames(VisitorDispatcher visitor, WebFrame* frame) { tra ceFramesImpl(visitor, frame); } \
354 void WebFrame::clearWeakFrames(VisitorDispatcher visitor) { clearWeakFramesI mpl(visitor); } 366 void WebFrame::clearWeakFrames(VisitorDispatcher visitor) { clearWeakFramesI mpl(visitor); }
355 367
356 DEFINE_VISITOR_METHOD(Visitor*) 368 DEFINE_VISITOR_METHOD(Visitor*)
357 DEFINE_VISITOR_METHOD(InlinedGlobalMarkingVisitor) 369 DEFINE_VISITOR_METHOD(InlinedGlobalMarkingVisitor)
358 370
359 #undef DEFINE_VISITOR_METHOD 371 #undef DEFINE_VISITOR_METHOD
360 372
361 } // namespace blink 373 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/RemoteFrameOwner.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698