| // Copyright 2019 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/apps/app_service/app_launch_params.h" |
| |
| #include <memory> |
| |
| namespace apps { |
| |
| AppLaunchParams::AppLaunchParams(const std::string& app_id, |
| LaunchContainer container, |
| WindowOpenDisposition disposition, |
| apps::LaunchSource launch_source, |
| int64_t display_id) |
| : app_id(app_id), |
| container(container), |
| disposition(disposition), |
| command_line(base::CommandLine::NO_PROGRAM), |
| launch_source(launch_source), |
| display_id(display_id) {} |
| |
| AppLaunchParams::AppLaunchParams(const std::string& app_id, |
| LaunchContainer container, |
| WindowOpenDisposition disposition, |
| apps::LaunchSource launch_source, |
| int64_t display_id, |
| const std::vector<base::FilePath>& files, |
| const IntentPtr& intentPtr) |
| : app_id(app_id), |
| container(container), |
| disposition(disposition), |
| command_line(base::CommandLine::NO_PROGRAM), |
| launch_source(launch_source), |
| display_id(display_id), |
| launch_files(files), |
| intent(intentPtr ? intentPtr->Clone() : nullptr) {} |
| |
| AppLaunchParams::AppLaunchParams(const std::string& app_id, |
| LaunchContainer container, |
| WindowOpenDisposition disposition, |
| const GURL& override_url, |
| apps::LaunchSource launch_source, |
| int64_t display_id, |
| const std::vector<base::FilePath>& files, |
| const IntentPtr& intentPtr) |
| : app_id(app_id), |
| container(container), |
| disposition(disposition), |
| override_url(override_url), |
| command_line(base::CommandLine::NO_PROGRAM), |
| launch_source(launch_source), |
| display_id(display_id), |
| launch_files(files), |
| intent(intentPtr ? intentPtr->Clone() : nullptr) {} |
| |
| AppLaunchParams::AppLaunchParams(AppLaunchParams&&) = default; |
| AppLaunchParams& AppLaunchParams::operator=(AppLaunchParams&&) = default; |
| |
| AppLaunchParams::~AppLaunchParams() = default; |
| |
| } // namespace apps |