| // Copyright 2021 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_CHROMEOS_FULL_RESTORE_ARC_WINDOW_UTILS_H_ |
| #define CHROME_BROWSER_CHROMEOS_FULL_RESTORE_ARC_WINDOW_UTILS_H_ |
| |
| #include <utility> |
| |
| #include "base/optional.h" |
| #include "components/services/app_service/public/mojom/types.mojom.h" |
| |
| namespace chromeos { |
| namespace full_restore { |
| |
| base::Optional<double> GetDisplayScaleFactor(int64_t display_id); |
| |
| // Returns true if the ARC supports ghost window. |
| bool IsArcGhostWindowEnabled(); |
| |
| // Returns window info compatible with ARC. If the window bounds is not |
| // appropriate for the display, it will be removed. |
| // |
| // The app window bounds can be decided if and only if it matches the |
| // conditions: |
| // 1. The |display_id| still exists on system. |
| // 2. Previous ARC app window bounds on display is recorded. |
| // Otherwise returns null. |
| apps::mojom::WindowInfoPtr HandleArcWindowInfo( |
| apps::mojom::WindowInfoPtr window_info); |
| |
| } // namespace full_restore |
| } // namespace chromeos |
| |
| #endif // CHROME_BROWSER_CHROMEOS_FULL_RESTORE_ARC_WINDOW_UTILS_H_ |