// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/remote_cocoa/app_shim/features.h"

namespace remote_cocoa::features {
// Unwanted space switching can occur on macOS when immersive fullscreen is
// enabled (https://crbug.com/40272387). This feature enables/disables
// mitigation for the unwanted space switches. The mitigation makes use of
// undocumented methods in AppKit, which is the main reason its enablement is
// controlled by this feature flag. TODO(https://crbug.com/40272387): Remove
// this flag once the space switching issue is fixed in AppKit.
BASE_FEATURE(kImmersiveFullscreenSpaceSwitchMitigation,
             base::FEATURE_ENABLED_BY_DEFAULT);

// When enabled the overlay windows become visible, allowing for visual
// debugging of their position on screen.
BASE_FEATURE(kImmersiveFullscreenOverlayWindowDebug,
             base::FEATURE_DISABLED_BY_DEFAULT);

BASE_FEATURE(kSuppressAppKitFrameAdjustmentsDuringMoveLoop,
             base::FEATURE_ENABLED_BY_DEFAULT);
}  // namespace remote_cocoa::features
