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

Unified Diff: third_party/WebKit/Source/core/dom/Fullscreen.cpp

Issue 2564573002: [Blink>Fullscreen] Add UseCounter for fullscreen on orientation change (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Fullscreen.cpp
diff --git a/third_party/WebKit/Source/core/dom/Fullscreen.cpp b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
index 9c124101037fbd3ff7c15d643bf029d91705330e..73b3d199860ab1a107257c1c471eb68091eeaa22 100644
--- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
@@ -87,8 +87,11 @@ bool allowedToRequestFullscreen(Document& document) {
return true;
// The algorithm is triggered by a user generated orientation change.
- if (ScopedOrientationChangeIndicator::processingOrientationChange())
+ if (ScopedOrientationChangeIndicator::processingOrientationChange()) {
+ UseCounter::count(document,
+ UseCounter::FullscreenAllowedByOrientationChange);
return true;
+ }
String message = ExceptionMessages::failedToExecute(
"requestFullscreen", "Element",
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698