123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- // Copyright 2020 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.
- #include "components/app_restore/app_launch_info.h"
- #include <utility>
- namespace app_restore {
- AppLaunchInfo::AppLaunchInfo(const std::string& app_id,
- int32_t window_id,
- apps::LaunchContainer container,
- WindowOpenDisposition disposition,
- int64_t display_id,
- std::vector<base::FilePath> launch_files,
- apps::IntentPtr intent)
- : app_id(app_id),
- window_id(window_id),
- container(static_cast<int32_t>(container)),
- disposition(static_cast<int32_t>(disposition)),
- display_id(display_id),
- file_paths(std::move(launch_files)),
- intent(std::move(intent)) {}
- AppLaunchInfo::AppLaunchInfo(const std::string& app_id, int32_t session_id)
- : app_id(app_id), window_id(session_id) {}
- AppLaunchInfo::AppLaunchInfo(const std::string& app_id,
- apps::LaunchContainer container,
- WindowOpenDisposition disposition,
- int64_t display_id,
- std::vector<base::FilePath> launch_files,
- apps::IntentPtr intent)
- : app_id(app_id),
- container(static_cast<int32_t>(container)),
- disposition(static_cast<int32_t>(disposition)),
- display_id(display_id),
- file_paths(std::move(launch_files)),
- intent(std::move(intent)) {}
- AppLaunchInfo::AppLaunchInfo(const std::string& app_id,
- int32_t event_flags,
- int32_t arc_session_id,
- int64_t display_id)
- : app_id(app_id),
- event_flag(event_flags),
- arc_session_id(arc_session_id),
- display_id(display_id) {}
- AppLaunchInfo::AppLaunchInfo(const std::string& app_id,
- int32_t event_flags,
- apps::IntentPtr intent,
- int32_t arc_session_id,
- int64_t display_id)
- : app_id(app_id),
- event_flag(event_flags),
- arc_session_id(arc_session_id),
- display_id(display_id),
- intent(std::move(intent)) {}
- AppLaunchInfo::AppLaunchInfo(const std::string& app_id,
- const std::string& handler_id,
- std::vector<base::FilePath> files)
- : app_id(app_id), handler_id(handler_id), file_paths(std::move(files)) {}
- AppLaunchInfo::~AppLaunchInfo() = default;
- } // namespace app_restore
|