chromium/chrome/browser/vr/ui_scene_constants.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 CHROME_BROWSER_VR_UI_SCENE_CONSTANTS_H_
#define CHROME_BROWSER_VR_UI_SCENE_CONSTANTS_H_

#include "base/numerics/angle_conversions.h"

namespace vr {

static constexpr float kExitWarningDistance =;
static constexpr float kExitWarningTextWidthDMM =;
static constexpr float kExitWarningFontHeightDMM =;
static constexpr float kExitWarningXPaddingDMM =;
static constexpr float kExitWarningYPaddingDMM =;
static constexpr float kExitWarningCornerRadiusDMM =;

static constexpr float kContentDistance =;
static constexpr float kContentWidthDMM =;
static constexpr float kContentHeightDMM =;
static constexpr float kContentWidth =;
static constexpr float kContentHeight =;
static constexpr float kContentVerticalOffsetDMM =;
static constexpr float kContentVerticalOffset =;
static constexpr float kContentCornerRadius =;
static constexpr float kLoadingIndicatorHeightDMM =;
static constexpr float kLoadingIndicatorHeight =;
static constexpr float kLoadingIndicatorYOffset =;
static constexpr float kBackplaneSize =;
static constexpr float kBackgroundDistanceMultiplier =;

static constexpr float kFullscreenDistance =;
// Make sure that the aspect ratio for fullscreen is 16:9. Otherwise, we may
// experience visual artefacts for fullscreened videos.
static constexpr float kFullscreenHeightDMM =;
static constexpr float kFullscreenHeight =;
static constexpr float kFullscreenWidth =;
static constexpr float kFullscreenVerticalOffsetDMM =;
static constexpr float kFullscreenVerticalOffset =;

static constexpr float kUrlBarDistance =;
static constexpr float kUrlBarHeightDMM =;
// This is the non-DMM relative offset of the URL bar. It is used to position
// the DMM root of the URL bar.
static constexpr float kUrlBarRelativeOffset =;
// This is the absolute offset of the URL bar's neutral position in DMM.
static constexpr float kUrlBarVerticalOffsetDMM =;
static constexpr float kUrlBarRotationRad =;
static constexpr float kUrlBarFontHeightDMM =;
static constexpr float kUrlBarButtonSizeDMM =;
static constexpr float kUrlBarButtonIconSizeDMM =;
static constexpr float kUrlBarEndButtonIconOffsetDMM =;
static constexpr float kUrlBarEndButtonWidthDMM =;
static constexpr float kUrlBarSeparatorWidthDMM =;
static constexpr float kUrlBarOriginRegionWidthDMM =;
static constexpr float kUrlBarOriginRightMarginDMM =;
static constexpr float kUrlBarOriginContentOffsetDMM =;
static constexpr float kUrlBarItemCornerRadiusDMM =;
static constexpr float kUrlBarUrlWidthDMM =;
static constexpr float kUrlBarButtonIconScaleFactor =;

static constexpr float kIndicatorHeightDMM =;
static constexpr float kIndicatorIconScaleFactor =;
static constexpr float kIndicatorXPaddingDMM =;
static constexpr float kIndicatorYPaddingDMM =;
static constexpr float kIndicatorCornerRadiusDMM =;
static constexpr float kIndicatorOffsetDMM =;
static constexpr float kIndicatorMarginDMM =;
static constexpr float kIndicatorVerticalOffset =;
static constexpr float kIndicatorDistanceOffset =;
static constexpr float kIndicatorDepth =;

static constexpr float kWebVrToastDistance =;
static constexpr float kToastXPaddingDMM =;
static constexpr float kToastYPaddingDMM =;
static constexpr float kToastCornerRadiusDMM =;
static constexpr float kToastTextFontHeightDMM =;
static constexpr int kToastTimeoutSeconds =;
static constexpr int kWindowsInitialIndicatorsTimeoutSeconds =;
static constexpr float kPlatformToastVerticalOffset =;

static constexpr float kSplashScreenTextDistance =;
static constexpr float kSplashScreenTextFontHeightDMM =;
static constexpr float kSplashScreenTextWidthDMM =;
static constexpr float kSplashScreenTextVerticalOffsetDMM =;
static constexpr float kSplashScreenMinDurationSeconds =;

static constexpr float kButtonDiameterDMM =;
static constexpr float kButtonZOffsetHoverDMM =;

static constexpr float kCloseButtonDistance =;
static constexpr float kCloseButtonRelativeOffset =;
static constexpr float kCloseButtonVerticalOffset =;
static constexpr float kCloseButtonDiameter =;
static constexpr float kCloseButtonFullscreenDistance =;
static constexpr float kCloseButtonFullscreenVerticalOffset =;
static constexpr float kCloseButtonFullscreenDiameter =;

static constexpr float kSceneSize =;
static constexpr float kSceneHeight =;
static constexpr float kFloorHeight =;
static constexpr int kFloorGridlineCount =;

static constexpr float kVoiceSearchCloseButtonDiameterDMM =;
static constexpr float kVoiceSearchCloseButtonDiameter =;
static constexpr float kVoiceSearchCloseButtonYOffset =;
static constexpr float kVoiceSearchRecognitionResultTextHeight =;
static constexpr float kVoiceSearchRecognitionResultTextWidth =;

static constexpr float kTimeoutScreenDisatance =;
static constexpr float kTimeoutSpinnerSizeDMM =;
static constexpr float kTimeoutSpinnerVerticalOffsetDMM =;

static constexpr float kTimeoutMessageHorizontalPaddingDMM =;
static constexpr float kTimeoutMessageVerticalPaddingDMM =;

static constexpr float kTimeoutMessageCornerRadiusDMM =;

static constexpr float kTimeoutMessageLayoutGapDMM =;
static constexpr float kTimeoutMessageIconWidthDMM =;
static constexpr float kTimeoutMessageIconHeightDMM =;
static constexpr float kTimeoutMessageTextFontHeightDMM =;
static constexpr float kTimeoutMessageTextWidthDMM =;

static constexpr float kTimeoutButtonDepthOffset =;
static constexpr float kTimeoutButtonRotationRad =;
static constexpr float kWebVrTimeoutMessageButtonDiameterDMM =;

static constexpr float kTimeoutButtonTextWidthDMM =;
static constexpr float kTimeoutButtonTextVerticalOffsetDMM =;

static constexpr float kHostedUiHeightRatio =;
static constexpr float kHostedUiWidthRatio =;
static constexpr float kHostedUiDepthOffset =;
static constexpr float kHostedUiShadowOffset =;
static constexpr float kFloatingHostedUiDistance =;

static constexpr float kScreenDimmerOpacity =;

static constexpr gfx::Point3F kOrigin =;

static constexpr float kLaserWidth =;

static constexpr float kReticleWidth =;
static constexpr float kReticleHeight =;

static constexpr float kOmniboxWidthDMM =;
static constexpr float kOmniboxHeightDMM =;
static constexpr float kOmniboxVerticalOffsetDMM =;
static constexpr float kOmniboxTextHeightDMM =;
static constexpr float kOmniboxTextMarginDMM =;
static constexpr float kOmniboxMicIconRightMarginDMM =;
static constexpr float kOmniboxCloseButtonDiameterDMM =;
static constexpr float kOmniboxCloseButtonVerticalOffsetDMM =;
static constexpr float kOmniboxCornerRadiusDMM =;
static constexpr float kOmniboxCloseButtonDepthOffset =;
static constexpr int kOmniboxTransitionMs =;

static constexpr float kOmniboxTextFieldIconButtonSizeDMM =;
static constexpr float kUrlBarButtonHoverOffsetDMM =;
static constexpr float kOmniboxTextFieldRightMargin =;

static constexpr float kSuggestionHeightDMM =;
static constexpr float kSuggestionGapDMM =;
static constexpr float kSuggestionLineGapDMM =;
static constexpr float kSuggestionIconSizeDMM =;
static constexpr float kSuggestionIconFieldWidthDMM =;
static constexpr float kSuggestionRightMarginDMM =;
static constexpr float kSuggestionTextFieldWidthDMM =;
static constexpr float kSuggestionContentTextHeightDMM =;
static constexpr float kSuggestionDescriptionTextHeightDMM =;
static constexpr float kSuggestionVerticalPaddingDMM =;

static constexpr int kControllerFadeInMs =;
static constexpr int kControllerFadeOutMs =;

static constexpr float kSpeechRecognitionResultTextYOffset =;
static constexpr int kSpeechRecognitionResultTimeoutMs =;
static constexpr int kSpeechRecognitionOpacityAnimationDurationMs =;

static constexpr float kModalPromptFadeOpacity =;

static constexpr float kKeyboardDistance =;
static constexpr float kKeyboardVerticalOffsetDMM =;
static constexpr float kKeyboardWebInputOffset =;

static constexpr float kControllerLabelSpacerSize =;
static constexpr float kControllerLabelLayoutMargin =;
static constexpr float kControllerLabelCalloutWidth =;
static constexpr float kControllerLabelCalloutHeight =;
static constexpr float kControllerLabelFontHeight =;
static constexpr float kControllerLabelScale =;

// TODO(vollick): these should be encoded in the controller mesh.
static constexpr float kControllerTrackpadOffset =;
static constexpr float kControllerExitButtonOffset =;
static constexpr float kControllerBackButtonOffset =;

static constexpr int kControllerLabelTransitionDurationMs =;

static constexpr float kControllerWidth =;
static constexpr float kControllerHeight =;
static constexpr float kControllerLength =;
static constexpr float kControllerSmallButtonSize =;
static constexpr float kControllerAppButtonZ =;
static constexpr float kControllerHomeButtonZ =;
static constexpr float kControllerBatteryDotMargin =;
static constexpr float kControllerBatteryDotSize =;
static constexpr float kControllerBatteryDotZ =;
static constexpr int kControllerBatteryDotCount =;

static constexpr float kSkyDistance =;
static constexpr float kGridOpacity =;

static constexpr float kRepositionContentOpacity =;

static constexpr float kWebVrPermissionCornerRadius =;
static constexpr float kWebVrPermissionLeftPadding =;
static constexpr float kWebVrPermissionRightPadding =;
static constexpr float kWebVrPermissionTopPadding =;
static constexpr float kWebVrPermissionBottomPadding =;
static constexpr float kWebVrPermissionMargin =;
static constexpr float kWebVrPermissionIconSize =;
static constexpr float kWebVrPermissionFontHeight =;
static constexpr float kWebVrPermissionTextWidth =;
static constexpr float kWebVrPermissionOuterMargin =;
static constexpr float kWebVrPermissionDepth =;
static constexpr float kWebVrPermissionOffsetStart =;
static constexpr float kWebVrPermissionOffsetOvershoot =;
static constexpr float kWebVrPermissionOffsetFinal =;
static constexpr int kWebVrPermissionOffsetMs =;
static constexpr int kWebVrPermissionAnimationDurationMs =;

static constexpr float kPromptVerticalOffsetDMM =;
static constexpr float kPromptShadowOffsetDMM =;
static constexpr float kPromptDistance =;
static constexpr float kPromptPadding =;
static constexpr float kPromptCornerRadius =;
static constexpr float kPromptTextWidth =;
static constexpr float kPromptFontSize =;
static constexpr float kPromptIconSize =;
static constexpr float kPromptButtonCornerRadius =;
static constexpr float kPromptIconTextGap =;
static constexpr float kPromptMessageButtonGap =;
static constexpr float kPromptButtonTextSize =;
static constexpr float kPromptButtonGap =;

static constexpr float kRepositionCursorBackgroundSize =;
static constexpr float kRepositionCursorSize =;

static constexpr float kMinResizerScale =;
static constexpr float kMaxResizerScale =;

static constexpr float kRepositionFrameTopPadding =;
static constexpr float kRepositionFrameEdgePadding =;
static constexpr float kRepositionFrameHitPlaneTopPadding =;
static constexpr float kRepositionFrameTransitionDurationMs =;

static constexpr float kOverflowMenuOffset =;
static constexpr float kOverflowMenuMinimumWidth =;
static constexpr float kOverflowButtonRegionHeight =;
static constexpr float kOverflowButtonRegionOpacity =;
static constexpr float kOverflowButtonXPadding =;
static constexpr float kOverflowButtonYPadding =;
static constexpr float kOverflowMenuYPadding =;
static constexpr float kOverflowMenuItemHeight =;
static constexpr float kOverflowMenuItemXPadding =;
static constexpr float kOverflowMenuMaxSpan =;

static constexpr const char* kCrashVrBrowserUrl =;

}  // namespace vr

#endif  // CHROME_BROWSER_VR_UI_SCENE_CONSTANTS_H_