chromium/ui/views/controls/slider.cc

// Copyright 2012 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/controls/slider.h"

#include <algorithm>
#include <iterator>
#include <memory>
#include <utility>

#include "base/check_op.h"
#include "base/i18n/rtl.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/current_thread.h"
#include "build/build_config.h"
#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "ui/accessibility/ax_action_data.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/events/event.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/widget/widget.h"

namespace views {

namespace {

// The thickness of the slider.
constexpr int kLineThickness =;

// The radius used to draw rounded slider ends.
constexpr float kSliderRoundedRadius =;

// The padding used to hide the slider underneath the thumb.
constexpr int kSliderPadding =;

// The radius of the highlighted thumb of the slider
constexpr float kThumbHighlightRadius =;

float GetNearestAllowedValue(const base::flat_set<float>& allowed_values,
                             float suggested_value) {}

}  // namespace

Slider::Slider(SliderListener* listener) :{}

Slider::~Slider() = default;

float Slider::GetValue() const {}

void Slider::SetValue(float value) {}

float Slider::GetValueIndicatorRadius() const {}

void Slider::SetValueIndicatorRadius(float radius) {}

bool Slider::GetEnableAccessibilityEvents() const {}

void Slider::SetEnableAccessibilityEvents(bool enabled) {}

void Slider::SetRenderingStyle(RenderingStyle style) {}

void Slider::SetAllowedValues(const base::flat_set<float>* allowed_values) {}

float Slider::GetAnimatingValue() const {}

void Slider::SetHighlighted(bool is_highlighted) {}

void Slider::AnimationProgressed(const gfx::Animation* animation) {}

void Slider::AnimationEnded(const gfx::Animation* animation) {}

void Slider::SetValueInternal(float value, SliderChangeReason reason) {}

void Slider::PrepareForMove(const int new_x) {}

void Slider::MoveButtonTo(const gfx::Point& point) {}

void Slider::OnSliderDragStarted() {}

void Slider::OnSliderDragEnded() {}

gfx::Size Slider::CalculatePreferredSize(
    const SizeBounds& available_size) const {}

bool Slider::OnMousePressed(const ui::MouseEvent& event) {}

bool Slider::OnMouseDragged(const ui::MouseEvent& event) {}

void Slider::OnMouseReleased(const ui::MouseEvent& event) {}

bool Slider::OnKeyPressed(const ui::KeyEvent& event) {}

void Slider::GetAccessibleNodeData(ui::AXNodeData* node_data) {}

bool Slider::HandleAccessibleAction(const ui::AXActionData& action_data) {}

void Slider::OnPaint(gfx::Canvas* canvas) {}

void Slider::OnFocus() {}

void Slider::OnBlur() {}

void Slider::VisibilityChanged(View* starting_from, bool is_visible) {}

void Slider::AddedToWidget() {}

void Slider::NotifyPendingAccessibilityValueChanged() {}

void Slider::OnGestureEvent(ui::GestureEvent* event) {}

SkColor Slider::GetThumbColor() const {}

SkColor Slider::GetTroughColor() const {}

int Slider::GetSliderExtraPadding() const {}

BEGIN_METADATA()

}  // namespace views