chromium/ios/chrome/browser/ui/content_suggestions/ntp_home_constant.h

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

#ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_NTP_HOME_CONSTANT_H_
#define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_NTP_HOME_CONSTANT_H_

#import <UIKit/UIKit.h>

namespace ntp_home {

// Enum identifying the different panels displayed on the NTP.
enum PanelIdentifier {
  NONE,
  HOME_PANEL,
  BOOKMARKS_PANEL,
  RECENT_TABS_PANEL,
  INCOGNITO_PANEL,
};

// Returns the accessibility identifier used by the fake omnibox.
NSString* FakeOmniboxAccessibilityID();

// Returns the accessibility identifier used by the Discover header title.
NSString* DiscoverHeaderTitleAccessibilityID();

// Returns the accessibility identifier used by the NTP logo.
NSString* NTPLogoAccessibilityID();

// Distance between the Most Visited tiles and the suggestions on iPad.
extern const CGFloat kMostVisitedBottomMarginIPad;
// Distance between the Most Visited tiles and the suggestions on iPhone.
extern const CGFloat kMostVisitedBottomMarginIPhone;
// Height of the first suggestions peeking at the bottom of the screen.
extern const CGFloat kSuggestionPeekingHeight;

// Dimension of user's identity avatar as a square image.
extern const CGFloat kIdentityAvatarDimension;
// Margin around identity avatar and customization menu.
extern const CGFloat kHeaderIconMargin;
// Padding around user's identity avatar and its margin.
extern const CGFloat kIdentityAvatarPadding;
// Dimension of signed-out identity icon.
extern const CGFloat kSignedOutIdentityIconSize;
// Dimension of the customization menu button's icon.
extern const CGFloat kCustomizationMenuIconSize;
// Dimension of the customization menu button.
extern const CGFloat kCustomizationMenuButtonDimension;
// The corner radius of the customization menu button.
extern const CGFloat kCustomizationMenuButtonCornerRadius;

// The background color of the NTP.
UIColor* NTPBackgroundColor();

}  // namespace ntp_home

#endif  // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_NTP_HOME_CONSTANT_H_