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

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

Issue 2557443002: [Blink>Fullscreen] Add UseCounter for fullscreen on orientation change (Closed)
Patch Set: nits 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 c168a417617edd87a6e25b1ce2aabfeda4e6ecce..ce9f4d9eb6ad74df28a9132e97f666b25422695e 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