#include "chrome/browser/ui/views/chrome_views_delegate.h"
#include "base/environment.h"
#include "base/feature_list.h"
#include "base/nix/xdg_util.h"
#include "build/branding_buildflags.h"
#include "chrome/browser/ui/views/native_widget_factory.h"
#include "chrome/common/channel_info.h"
#include "chrome/grit/chrome_unscaled_resources.h"
#include "components/version_info/channel.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_features.h"
#include "ui/linux/linux_ui.h"
#include "ui/ozone/public/ozone_platform.h"
namespace {
bool IsDesktopEnvironmentUnity() { … }
#if BUILDFLAG(IS_LINUX)
int GetWindowIconResourceId() { … }
#endif
NativeWidgetType GetNativeWidgetTypeForInitParams(
const views::Widget::InitParams& params) { … }
}
views::NativeWidget* ChromeViewsDelegate::CreateNativeWidget(
views::Widget::InitParams* params,
views::internal::NativeWidgetDelegate* delegate) { … }
#if BUILDFLAG(IS_LINUX)
gfx::ImageSkia* ChromeViewsDelegate::GetDefaultWindowIcon() const { … }
#endif
bool ChromeViewsDelegate::WindowManagerProvidesTitleBar(bool maximized) { … }