blob: 170628b3481b191d2dbf9106b5646a88d2a7dea7 [file] [log] [blame]
// Copyright 2016 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 blink.mojom;
enum AppBannerPromptReply {
NONE,
CANCEL,
};
interface AppBannerController {
// The browser asks the renderer if the app banner should be shown.
BannerPromptRequest(pending_remote<AppBannerService> service,
pending_receiver<AppBannerEvent> event_receiver,
array<string> platform) => (AppBannerPromptReply reply);
};
interface AppBannerEvent {
// The browser informs the renderer the response to the app banner.
BannerAccepted(string platform);
BannerDismissed();
};
interface AppBannerService {
// The renderer asks the browser to display a previously offered app banner.
DisplayAppBanner();
};