blob: f57d1b73edc92250bed2258cba75b1e002df7b8f [file] [log] [blame]
// Copyright 2018 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/platform/scheduler/main_thread/page_visibility_state.h"
namespace blink {
namespace scheduler {
const char* PageVisibilityStateToString(PageVisibilityState visibility) {
switch (visibility) {
case PageVisibilityState::kVisible:
return "visible";
case PageVisibilityState::kHidden:
return "hidden";
}
// Keep MSVC happy.
return nullptr;
}
} // namespace scheduler
} // namespace blink