blob: 73f8e0fe9db1d519f73d9b66afe56df24292843b [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/fullscreen/fullscreen_request_type.h"
#if DCHECK_IS_ON()
#include <sstream>
#endif
namespace blink {
#if DCHECK_IS_ON()
std::string FullscreenRequestTypeToDebugString(FullscreenRequestType req) {
std::stringstream result;
result << (req & FullscreenRequestType::kPrefixed ? "Prefixed"
: "Unprefixed");
if (req & FullscreenRequestType::kForCrossProcessDescendant)
result << "|ForCrossProcessDescendant";
if (req & FullscreenRequestType::kForXrOverlay)
result << "|ForXrOverlay";
return result.str();
}
#endif
} // namespace blink