chromium/ui/views/corewm/tooltip_aura.cc

// Copyright 2013 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/corewm/tooltip_aura.h"

#include <algorithm>
#include <utility>

#include "base/i18n/rtl.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/string_split.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/screen_position_client.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/owned_window_anchor.h"
#include "ui/base/ui_base_types.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/text_utils.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/widget/widget.h"
#include "ui/wm/public/tooltip_observer.h"

namespace {

// TODO(varkha): Update if native widget can be transparent on Linux.
bool CanUseTranslucentTooltipWidget() {}

}  // namespace

namespace views::corewm {

// static
const char TooltipAura::kWidgetName[] =;

TooltipAura::TooltipAura()
    :{}

TooltipAura::TooltipAura(
    const TooltipAura::TooltipViewFactory& tooltip_view_factory)
    :{}

TooltipAura::~TooltipAura() {}

void TooltipAura::AddObserver(wm::TooltipObserver* observer) {}

void TooltipAura::RemoveObserver(wm::TooltipObserver* observer) {}

void TooltipAura::SetMaxWidth(int width) {}

// static
void TooltipAura::AdjustToCursor(gfx::Rect* anchor_point) {}

class TooltipAura::TooltipWidget : public Widget {};

const gfx::RenderText* TooltipAura::GetRenderTextForTest() const {}

void TooltipAura::GetAccessibleNodeDataForTest(ui::AXNodeData* node_data) {}

gfx::Rect TooltipAura::GetTooltipBounds(const gfx::Size& tooltip_size,
                                        const gfx::Point& anchor_point,
                                        const TooltipTrigger trigger,
                                        ui::OwnedWindowAnchor* anchor) {}

void TooltipAura::CreateTooltipWidget(const gfx::Rect& bounds,
                                      const ui::OwnedWindowAnchor& anchor) {}

void TooltipAura::DestroyWidget() {}

int TooltipAura::GetMaxWidth(const gfx::Point& location) const {}

void TooltipAura::Update(aura::Window* window,
                         const std::u16string& tooltip_text,
                         const gfx::Point& position,
                         const TooltipTrigger trigger) {}

void TooltipAura::Show() {}

void TooltipAura::Hide() {}

bool TooltipAura::IsVisible() {}

}  // namespace views::corewm