// Copyright 2011 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ #include <memory> #include <optional> #include "ui/gfx/native_widget_types.h" #include "ui/views/view.h" namespace gfx { class RoundedCornersF; } namespace ui { class Layer; } // namespace ui namespace views { namespace test { class NativeViewHostTestBase; } class NativeViewHostWrapper; // If a NativeViewHost's native view is a Widget, this native window // property is set on the widget, pointing to the owning NativeViewHost. extern const char kWidgetNativeViewHostKey[]; // A View type that hosts a gfx::NativeView. The bounds of the native view are // kept in sync with the bounds of this view as it is moved and sized. // Under the hood, a platform-specific NativeViewHostWrapper implementation does // the platform-specific work of manipulating the underlying OS widget type. class VIEWS_EXPORT NativeViewHost : public View { … }; } // namespace views #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_