blob: 8b33207e6a2cd773fd36758e64e5253c1fc1a69e [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.
module app_management.mojom;
import "chrome/services/app_service/public/mojom/types.mojom";
struct App {
string id;
apps.mojom.AppType type;
// The fields below may be omitted because this struct is also used to signal
// updates.
string? title;
string? description;
apps.mojom.OptionalBool is_pinned;
string? version;
string? size;
};
interface PageHandlerFactory {
CreatePageHandler(Page page, PageHandler& handler);
};
// Browser interface.
interface PageHandler {
GetApps() => (array<App> apps);
};
// Frontend interface.
interface Page {
OnAppAdded(App app);
OnAppChanged(App update);
OnAppRemoved(string app_id);
};
enum TestPermissionType {
NOTIFICATIONS = 0,
LOCATION,
CAMERA,
MICROPHONE,
};