blob: 4d5625c39f7c71bf66950482b35ea782f292b55f [file] [log] [blame]
// Copyright (c) 2012 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.
#ifndef CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_
#define CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_
#include "chrome/browser/apps/app_service/app_launch_params.h"
#include "components/services/app_service/public/mojom/types.mojom-forward.h"
#include "ui/base/window_open_disposition.h"
class Profile;
namespace extensions {
class Extension;
}
// Helper to create AppLaunchParams using extensions::GetLaunchContainer with
// LAUNCH_TYPE_REGULAR to check for a user-configured container.
apps::AppLaunchParams CreateAppLaunchParamsUserContainer(
Profile* profile,
const extensions::Extension* extension,
WindowOpenDisposition disposition,
apps::mojom::AppLaunchSource source);
// Helper to create AppLaunchParams, falling back to
// extensions::GetLaunchContainer() with no modifiers.
apps::AppLaunchParams CreateAppLaunchParamsWithEventFlags(
Profile* profile,
const extensions::Extension* extension,
int event_flags,
apps::mojom::AppLaunchSource source,
int64_t display_id);
#endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_