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

Side by Side Diff: third_party/WebKit/Source/core/dom/Fullscreen.cpp

Issue 2850983002: Remove UserGestureUtilizedCallback, it's unused outside of tests (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // 2. If Feature Policy is enabled, return the policy for "fullscreen" 83 // 2. If Feature Policy is enabled, return the policy for "fullscreen"
84 // feature. 84 // feature.
85 return frame->IsFeatureEnabled(WebFeaturePolicyFeature::kFullscreen); 85 return frame->IsFeatureEnabled(WebFeaturePolicyFeature::kFullscreen);
86 } 86 }
87 87
88 bool AllowedToRequestFullscreen(Document& document) { 88 bool AllowedToRequestFullscreen(Document& document) {
89 // An algorithm is allowed to request fullscreen if one of the following is 89 // An algorithm is allowed to request fullscreen if one of the following is
90 // true: 90 // true:
91 91
92 // The algorithm is triggered by a user activation. 92 // The algorithm is triggered by a user activation.
93 if (UserGestureIndicator::UtilizeUserGesture()) 93 if (UserGestureIndicator::ProcessingUserGesture())
94 return true; 94 return true;
95 95
96 // The algorithm is triggered by a user generated orientation change. 96 // The algorithm is triggered by a user generated orientation change.
97 if (ScopedOrientationChangeIndicator::ProcessingOrientationChange()) { 97 if (ScopedOrientationChangeIndicator::ProcessingOrientationChange()) {
98 UseCounter::Count(document, 98 UseCounter::Count(document,
99 UseCounter::kFullscreenAllowedByOrientationChange); 99 UseCounter::kFullscreenAllowedByOrientationChange);
100 return true; 100 return true;
101 } 101 }
102 102
103 String message = ExceptionMessages::FailedToExecute( 103 String message = ExceptionMessages::FailedToExecute(
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 DEFINE_TRACE(Fullscreen) { 847 DEFINE_TRACE(Fullscreen) {
848 visitor->Trace(pending_fullscreen_element_); 848 visitor->Trace(pending_fullscreen_element_);
849 visitor->Trace(fullscreen_element_stack_); 849 visitor->Trace(fullscreen_element_stack_);
850 visitor->Trace(current_full_screen_element_); 850 visitor->Trace(current_full_screen_element_);
851 visitor->Trace(event_queue_); 851 visitor->Trace(event_queue_);
852 Supplement<Document>::Trace(visitor); 852 Supplement<Document>::Trace(visitor);
853 ContextLifecycleObserver::Trace(visitor); 853 ContextLifecycleObserver::Trace(visitor);
854 } 854 }
855 855
856 } // namespace blink 856 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698