fullscreen_delegate.h 705 B

1234567891011121314151617181920212223242526
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef WEBLAYER_PUBLIC_FULLSCREEN_DELEGATE_H_
  5. #define WEBLAYER_PUBLIC_FULLSCREEN_DELEGATE_H_
  6. #include "base/callback_forward.h"
  7. namespace weblayer {
  8. class FullscreenDelegate {
  9. public:
  10. // Called when the page has requested to go fullscreen.
  11. virtual void EnterFullscreen(base::OnceClosure exit_closure) = 0;
  12. // Informs the delegate the page has exited fullscreen.
  13. virtual void ExitFullscreen() = 0;
  14. protected:
  15. virtual ~FullscreenDelegate() {}
  16. };
  17. } // namespace weblayer
  18. #endif // WEBLAYER_PUBLIC_FULLSCREEN_DELEGATE_H_