blob: ef9b5866152e421f3bc6e9a29aa8a1dd3489ffbf [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
#include "base/metrics/field_trial_params.h"
#import "ios/chrome/browser/shared/public/features/features.h"
#import "ui/base/device_form_factor.h"
BASE_FEATURE(kEnableSuggestionsScrollingOnIPad,
"EnableSuggestionsScrollingOnIPad",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kEnablePopoutOmniboxIpad,
"EnablePopoutOmniboxIpad",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kOmniboxKeyboardPasteButton,
"OmniboxKeyboardPasteButton",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kOmniboxMultilineSearchSuggest,
"OmniboxMultilineSearchSuggest",
base::FEATURE_ENABLED_BY_DEFAULT);
// Tail suggest is triggered server side.
BASE_FEATURE(kOmniboxTailSuggest,
"OmniboxTailSuggest",
base::FEATURE_ENABLED_BY_DEFAULT);
bool IsIpadPopoutOmniboxEnabled() {
return base::FeatureList::IsEnabled(kEnablePopoutOmniboxIpad) &&
ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_TABLET;
}