blob: 428b7df06aca36cb5df22f4d0f02c3b37521a78d [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBLAYER_PUBLIC_FULLSCREEN_DELEGATE_H_
#define WEBLAYER_PUBLIC_FULLSCREEN_DELEGATE_H_
#include "base/functional/callback_forward.h"
namespace weblayer {
class FullscreenDelegate {
public:
// Called when the page has requested to go fullscreen.
virtual void EnterFullscreen(base::OnceClosure exit_closure) = 0;
// Informs the delegate the page has exited fullscreen.
virtual void ExitFullscreen() = 0;
protected:
virtual ~FullscreenDelegate() {}
};
} // namespace weblayer
#endif // WEBLAYER_PUBLIC_FULLSCREEN_DELEGATE_H_