// Copyright 2018 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/omnibox/public/omnibox_constants.h"

const CGFloat kOmniboxPlaceholderAlpha = 0.3;

NSString* const kOmniboxCancelButtonAccessibilityIdentifier =
    @"OmniboxCancelButtonAccessibilityIdentifier";

NSString* const kOmniboxClearButtonAccessibilityIdentifier =
    @"OmniboxClearButtonAccessibilityIdentifier";

NSString* const kOmniboxLeadingImageDefaultAccessibilityIdentifier =
    @"OmniboxLeadingImageDefaultAccessibilityIdentifier";

NSString* const kOmniboxLeadingImageEmptyTextAccessibilityIdentifier =
    @"OmniboxLeadingImageEmptyTextAccessibilityIdentifier";

NSString* const kOmniboxLeadingImageSuggestionImageAccessibilityIdentifier =
    @"OmniboxLeadingImageSuggestionImageAccessibilityIdentifier";

NSString* const kOmniboxPopupCloseButtonAccessibilityIdentifier =
    @"OmniboxPopupCloseButtonAccessibilityIdentifier";

constexpr CGFloat kOmniboxLeadingImageSize = 30;
constexpr CGFloat kOmniboxLeadingImageViewEdgeOffset = 7;
constexpr CGFloat kOmniboxTextFieldLeadingOffsetNoImage = 16;
constexpr CGFloat kOmniboxTextFieldLeadingOffsetImage = 14;
constexpr CGFloat kOmniboxEditOffset = kOmniboxLeadingImageViewEdgeOffset +
                                       kOmniboxLeadingImageSize +
                                       kOmniboxTextFieldLeadingOffsetImage;

const CGFloat kOmniboxPopupTopPadding = 8.0;

const CGFloat kOmniboxTextViewMinVerticalInset = 8.0;
const CGFloat kOmniboxTextViewMinVerticalInsetIPadComposebox = 16.0f;
