blob: 8a5be1f12022dbd09dd24200e385927c77be112c [file] [log] [blame]
// Copyright 2021 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.
module chromeos.mojom.demo_mode;
// Implemented in the browser process. Interface for the Demo Mode WebUI to
// retrieve an endpoint to the PageHandler interface, and to provide its own
// Page endpoint to receive notifications.
interface PageHandlerFactory {
// Create a page handler to provide one-way message passing between the WebUI
// and browser process
CreatePageHandler(pending_receiver<PageHandler> handler);
};
// Implemented in the Browser process. Interface for sending ToggleFullscreen()
// commands from the Web UI to the browser process.
interface PageHandler {
// Fire-and-forget command to trigger enter or exit fullscreen on a native
// window. Used for when we need to enter fullscreen without user interaction.
ToggleFullscreen();
};