#include "apps/ui/views/app_window_frame_view.h"
#include <memory>
#include <utility>
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "cc/paint/paint_flags.h"
#include "chrome/grit/theme_resources.h"
#include "extensions/browser/app_window/native_app_window.h"
#include "third_party/skia/include/core/SkPath.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/base/hit_test.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/gfx/image/image.h"
#include "ui/strings/grit/ui_strings.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
namespace {
#if BUILDFLAG(IS_CHROMEOS)
const int kCaptionHeight = 30;
#else
const int kCaptionHeight = …;
#endif
}
namespace apps {
AppWindowFrameView::AppWindowFrameView(views::Widget* widget,
extensions::NativeAppWindow* window,
bool draw_frame,
const SkColor& active_frame_color,
const SkColor& inactive_frame_color)
: … { … }
AppWindowFrameView::~AppWindowFrameView() = default;
void AppWindowFrameView::Init() { … }
void AppWindowFrameView::SetResizeSizes(int resize_inside_bounds_size,
int resize_outside_bounds_size,
int resize_area_corner_size) { … }
void AppWindowFrameView::SetFrameCornerRadius(int radius) { … }
gfx::Rect AppWindowFrameView::GetBoundsForClientView() const { … }
gfx::Rect AppWindowFrameView::GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const { … }
int AppWindowFrameView::NonClientHitTest(const gfx::Point& point) { … }
void AppWindowFrameView::SizeConstraintsChanged() { … }
gfx::Size AppWindowFrameView::CalculatePreferredSize(
const views::SizeBounds& available_size) const { … }
void AppWindowFrameView::Layout(PassKey) { … }
void AppWindowFrameView::OnPaint(gfx::Canvas* canvas) { … }
gfx::Size AppWindowFrameView::GetMinimumSize() const { … }
gfx::Size AppWindowFrameView::GetMaximumSize() const { … }
SkColor AppWindowFrameView::CurrentFrameColor() { … }
void AppWindowFrameView::SetButtonImagesForFrame() { … }
BEGIN_METADATA(…)
}