chromium/ui/touch_selection/touch_handle_drawable_aura.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/touch_selection/touch_handle_drawable_aura.h"

#include "ui/aura/window.h"
#include "ui/aura/window_targeter.h"
#include "ui/base/cursor/cursor.h"
#include "ui/base/hit_test.h"
#include "ui/base/models/image_model.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_features.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/color/color_provider_manager.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/paint_recorder.h"
#include "ui/events/event.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/outsets_f.h"
#include "ui/gfx/geometry/point_conversions.h"
#include "ui/gfx/image/image.h"
#include "ui/native_theme/native_theme.h"
#include "ui/native_theme/native_theme_observer.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/touch_selection//vector_icons/vector_icons.h"

namespace ui {
namespace {

// Vertical offset to apply from the bottom of the selection/text baseline to
// the top of the handle image. Only applied when touch text editing redesign is
// disabled.
constexpr int kSelectionHandleVerticalOffset =;

// Padding to apply horizontally around and vertically below the handle image,
// so that touch events near the handle image are targeted to the handle. Only
// applied when touch text editing redesign is enabled.
constexpr int kSelectionHandlePadding =;

// Max opacity of the selection handle image.
constexpr float kSelectionHandleMaxOpacity =;

// Epsilon value used to compare float values to zero.
constexpr float kEpsilon =;

// Returns the appropriate handle image based on the handle orientation.
gfx::Image* GetHandleImage(TouchHandleOrientation orientation) {}

// Returns the appropriate handle vector icon based on the handle orientation.
ImageModel GetHandleVectorIcon(TouchHandleOrientation orientation) {}

bool IsNearlyZero(float value) {}

}  // namespace

TouchHandleDrawableAura::TouchHandleDrawableAura(aura::Window* parent)
    :{}

TouchHandleDrawableAura::~TouchHandleDrawableAura() = default;

void TouchHandleDrawableAura::UpdateWindowBounds() {}

bool TouchHandleDrawableAura::IsVisible() const {}

void TouchHandleDrawableAura::SetEnabled(bool enabled) {}

void TouchHandleDrawableAura::SetOrientation(TouchHandleOrientation orientation,
                                             bool mirror_vertical,
                                             bool mirror_horizontal) {}

void TouchHandleDrawableAura::SetOrigin(const gfx::PointF& position) {}

void TouchHandleDrawableAura::SetAlpha(float alpha) {}

gfx::RectF TouchHandleDrawableAura::GetVisibleBounds() const {}

float TouchHandleDrawableAura::GetDrawableHorizontalPaddingRatio() const {}

void TouchHandleDrawableAura::OnPaintLayer(const PaintContext& context) {}

void TouchHandleDrawableAura::OnNativeThemeUpdated(
    NativeTheme* observed_theme) {}

}  // namespace ui