chromium/ui/views/style/platform_style.cc

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

#include "ui/views/style/platform_style.h"

#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/range/range.h"
#include "ui/gfx/utf16_indexing.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/background.h"
#include "ui/views/buildflags.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/label_button_border.h"
#include "ui/views/controls/focusable_border.h"
#include "ui/views/controls/scrollbar/scroll_bar_views.h"

#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
#include "ui/views/controls/scrollbar/overlay_scroll_bar.h"
#endif

namespace views {

#if BUILDFLAG(IS_WIN)
const bool PlatformStyle::kIsOkButtonLeading = true;
#else
const bool PlatformStyle::kIsOkButtonLeading =;
#endif

#if !BUILDFLAG(IS_MAC)

const int PlatformStyle::kMinLabelButtonWidth =;
const int PlatformStyle::kMinLabelButtonHeight =;
const bool PlatformStyle::kDialogDefaultButtonCanBeCancel =;
const bool PlatformStyle::kSelectWordOnRightClick =;
const bool PlatformStyle::kSelectAllOnRightClickWhenUnfocused =;
const Button::KeyClickAction PlatformStyle::kKeyClickActionOnSpace =;
const bool PlatformStyle::kReturnClicksFocusedControl =;
const bool PlatformStyle::kTableViewSupportsKeyboardNavigationByCell =;
const bool PlatformStyle::kTreeViewSelectionPaintsEntireRow =;
const bool PlatformStyle::kUseRipples =;
const bool PlatformStyle::kTextfieldUsesDragCursorWhenDraggable =;
const bool PlatformStyle::kInactiveWidgetControlsAppearDisabled =;
const View::FocusBehavior PlatformStyle::kDefaultFocusBehavior =;

// Linux clips bubble windows that extend outside their parent window
// bounds.
const bool PlatformStyle::kAdjustBubbleIfOffscreen =;
#else
    true;
#endif

// static
std::unique_ptr<ScrollBar> PlatformStyle::CreateScrollBar(
    ScrollBar::Orientation orientation) {}

// static
void PlatformStyle::OnTextfieldEditFailed() {}

// static
gfx::Range PlatformStyle::RangeToDeleteBackwards(const std::u16string& text,
                                                 size_t cursor_position) {}

#endif  // !BUILDFLAG(IS_MAC)

}  // namespace views