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

Side by Side Diff: third_party/WebKit/Source/core/frame/RemoteFrame.cpp

Issue 1799253002: Stricter user gestures for touch - measure and warn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 "core/frame/RemoteFrame.h" 5 #include "core/frame/RemoteFrame.h"
6 6
7 #include "bindings/core/v8/WindowProxy.h" 7 #include "bindings/core/v8/WindowProxy.h"
8 #include "bindings/core/v8/WindowProxyManager.h" 8 #include "bindings/core/v8/WindowProxyManager.h"
9 #include "core/dom/RemoteSecurityContext.h" 9 #include "core/dom/RemoteSecurityContext.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // The process where this frame actually lives won't have sufficient informa tion to determine 70 // The process where this frame actually lives won't have sufficient informa tion to determine
71 // correct referrer, since it won't have access to the originDocument. Set i t now. 71 // correct referrer, since it won't have access to the originDocument. Set i t now.
72 ResourceRequest request(url); 72 ResourceRequest request(url);
73 request.setHTTPReferrer(SecurityPolicy::generateReferrer(originDocument.getR eferrerPolicy(), url, originDocument.outgoingReferrer())); 73 request.setHTTPReferrer(SecurityPolicy::generateReferrer(originDocument.getR eferrerPolicy(), url, originDocument.outgoingReferrer()));
74 request.setHasUserGesture(userGestureStatus == UserGestureStatus::Active); 74 request.setHasUserGesture(userGestureStatus == UserGestureStatus::Active);
75 remoteFrameClient()->navigate(request, replaceCurrentItem); 75 remoteFrameClient()->navigate(request, replaceCurrentItem);
76 } 76 }
77 77
78 void RemoteFrame::navigate(const FrameLoadRequest& passedRequest) 78 void RemoteFrame::navigate(const FrameLoadRequest& passedRequest)
79 { 79 {
80 UserGestureStatus gesture = UserGestureIndicator::processingUserGesture() ? UserGestureStatus::Active : UserGestureStatus::None; 80 UserGestureStatus gesture = UserGestureIndicator::processingUserGestureUntra cked() ? UserGestureStatus::Active : UserGestureStatus::None;
81 navigate(*passedRequest.originDocument(), passedRequest.resourceRequest().ur l(), passedRequest.replacesCurrentItem(), gesture); 81 navigate(*passedRequest.originDocument(), passedRequest.resourceRequest().ur l(), passedRequest.replacesCurrentItem(), gesture);
82 } 82 }
83 83
84 void RemoteFrame::reload(FrameLoadType frameLoadType, ClientRedirectPolicy clien tRedirectPolicy) 84 void RemoteFrame::reload(FrameLoadType frameLoadType, ClientRedirectPolicy clien tRedirectPolicy)
85 { 85 {
86 remoteFrameClient()->reload(frameLoadType, clientRedirectPolicy); 86 remoteFrameClient()->reload(frameLoadType, clientRedirectPolicy);
87 } 87 }
88 88
89 void RemoteFrame::detach(FrameDetachType type) 89 void RemoteFrame::detach(FrameDetachType type)
90 { 90 {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 ASSERT(owner()); 189 ASSERT(owner());
190 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate(); 190 toHTMLFrameOwnerElement(owner())->setNeedsCompositingUpdate();
191 } 191 }
192 192
193 void RemoteFrame::advanceFocus(WebFocusType type, LocalFrame* source) 193 void RemoteFrame::advanceFocus(WebFocusType type, LocalFrame* source)
194 { 194 {
195 remoteFrameClient()->advanceFocus(type, source); 195 remoteFrameClient()->advanceFocus(type, source);
196 } 196 }
197 197
198 } // namespace blink 198 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698