chromium/ui/views/controls/native/native_view_host.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/native/native_view_host.h"

#include <memory>
#include <utility>

#include "base/check.h"
#include "build/buildflag.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/base/cursor/cursor.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/gfx/canvas.h"
#include "ui/views/controls/native/native_view_host_wrapper.h"
#include "ui/views/painter.h"
#include "ui/views/view_utils.h"
#include "ui/views/widget/widget.h"

namespace views {

// static
const char kWidgetNativeViewHostKey[] =;

////////////////////////////////////////////////////////////////////////////////
// NativeViewHost, public:

NativeViewHost::NativeViewHost() {}

NativeViewHost::~NativeViewHost() {}

void NativeViewHost::Attach(gfx::NativeView native_view) {}

void NativeViewHost::Detach() {}

void NativeViewHost::SetParentAccessible(gfx::NativeViewAccessible accessible) {}

gfx::NativeViewAccessible NativeViewHost::GetParentAccessible() {}

bool NativeViewHost::SetCornerRadii(const gfx::RoundedCornersF& corner_radii) {}

bool NativeViewHost::SetCustomMask(std::unique_ptr<ui::LayerOwner> mask) {}

void NativeViewHost::SetHitTestTopInset(int top_inset) {}

int NativeViewHost::GetHitTestTopInset() const {}

void NativeViewHost::SetNativeViewSize(const gfx::Size& size) {}

gfx::NativeView NativeViewHost::GetNativeViewContainer() const {}

void NativeViewHost::NativeViewDestroyed() {}

void NativeViewHost::SetBackgroundColorWhenClipped(
    std::optional<SkColor> color) {}

ui::Layer* NativeViewHost::GetUILayer() {}

////////////////////////////////////////////////////////////////////////////////
// NativeViewHost, View overrides:

void NativeViewHost::Layout(PassKey) {}

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

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

bool NativeViewHost::GetNeedsNotificationWhenVisibleBoundsChange() const {}

void NativeViewHost::OnVisibleBoundsChanged() {}

void NativeViewHost::ViewHierarchyChanged(
    const ViewHierarchyChangedDetails& details) {}

void NativeViewHost::OnFocus() {}

gfx::NativeViewAccessible NativeViewHost::GetNativeViewAccessible() {}

ui::Cursor NativeViewHost::GetCursor(const ui::MouseEvent& event) {}

void NativeViewHost::SetVisible(bool visible) {}

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

////////////////////////////////////////////////////////////////////////////////
// NativeViewHost, private:

void NativeViewHost::Detach(bool destroyed) {}

void NativeViewHost::ClearFocus() {}

BEGIN_METADATA()

}  // namespace views