12345678910111213141516171819202122232425262728 |
- // 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.
- #include "chromeos/ui/wm/features.h"
- #if BUILDFLAG(IS_CHROMEOS_LACROS)
- #include "chromeos/startup/browser_params_proxy.h"
- #endif
- namespace chromeos::wm::features {
- // Enables a window to float.
- // https://crbug.com/1240411
- const base::Feature kFloatWindow{"CrOSLabsFloatWindow",
- base::FEATURE_DISABLED_BY_DEFAULT};
- bool IsFloatWindowEnabled() {
- #if BUILDFLAG(IS_CHROMEOS_ASH)
- return base::FeatureList::IsEnabled(kFloatWindow);
- #elif BUILDFLAG(IS_CHROMEOS_LACROS)
- return chromeos::BrowserParamsProxy::Get()->IsFloatWindowEnabled();
- #else
- return false;
- #endif
- }
- } // namespace chromeos::wm::features
|